This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll” | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.WorkflowServices.dll” | |
# Specify tenant admin and site URL | |
$SiteUrl = "mysiteurl" | |
$ListName = "mylistname" | |
$UserName = "myusername" | |
$SecurePassword = ConvertTo-SecureString "mypassword" -AsPlainText -Force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Data; | |
using System.IO; | |
namespace Extensions.Data { | |
public static class DataReaderExtensions { | |
/* | |
* Extension method on IDataReader that reads the entire contents of a large binary column using a single method call. | |
* Sample usage: |
NewerOlder