Hello,
I am writing a C# program which should hold a big list of contacts in an mssql database. I need to create a new mssql 2008 database if it doesn't already exist and then use it.
Is there a function that I can call to create a new database?
Thanks in advance.
Creating mssql database inside my programs code.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted May 9, 2010, 11:11 PM EDT
hope below link will useful for you.
http://www.codeproject.com/KB/database/CreateDB.aspx
thanks