Manale
Manale

Reputation: 53

Create a table in the sharepoint database using C#

How to create A new table in the sharepoint database from c# using the sharepoint libraries.

Upvotes: 0

Views: 906

Answers (2)

Janis Veinbergs
Janis Veinbergs

Reputation: 6988

You can create your own database and store data inside there. You can use web.config (See SPWebConfigModification class) to store your connection string But do not interact with SharePoint database in a direct way, unless you want problems.

Maybe you need SLAM! (SharePoint List Association Manager) or maybe you choose path of creating your own database

Upvotes: 1

Shoban
Shoban

Reputation: 23016

It is not recomended to edit the sharepoint database. You can use the sharepoint list as a storage repository or create a new database and use it along with a custom webpart.

What is the need for a new table?

Upvotes: 4

Related Questions