Author Archives: Stu

Create Site Collection with Content Database

A PowerShell related post today. If you need to create a new site collection and ensure it uses a specific content database, this little script will get that done for you. No messing about in Central Administration disabling content databases … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

Slow Query Duration

When working with custom code that manipulates lists that contain a large number of fields, the ULS logs will likely be littered with the following entries: A large block of literal text was sent to sql. This can result in … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

Sending large data with CSOM

As a follow up to my recent post showing how to create or overwrite a document using the CSOM, I’m now going to show how to upload a file containing large amounts of data. To see the original post, click … Continue reading

Posted in CSOM, SharePoint | Tagged , | 8 Comments

Large Data and REST Services

When working with web services within SharePoint you sometimes need to be able to post and get large amounts of data through it. Instead of adding binding information to the web.config file(s), always a pain with SharePoint on deployment, depending … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Set Title Field on Document Upload

When uploading a file to a SharePoint library through code, you sometimes want to set item properties at the same time the document is created. To achieve this you simply populate a Hashtable object and pass this into the Add … Continue reading

Posted in SharePoint | Tagged | 3 Comments