I'm working on SharePoint 2019 environment.

I have just created site collection programmatically (CSOM) using MSDN Link

However, I want to create a content database through CSOM and point this newly created Content DB for creating above new site collection.

Any help is much appreciated!

1 Answer 1


Nope, you can't create a content database through CSOM.

  • Is it possible via CSOM powershell? Oct 15, 2019 at 11:01
  • 1
    no, you need server code. Oct 15, 2019 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.