Create database using a script file
i have generated a script file of a database of sql server 2005,i want to run the script from c#.any ideas.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joxin StanlyPosted Aug 25, 2013, 10:59 AM
please have a look @ below link:
http://social.msdn.microsoft.com/Forums/en-US/43e8bc3a-1132-453b-b950-09427e970f31/run-a-sql-script-file-in-c
http://stackoverflow.com/questions/650098/how-to-execute-an-sql-script-file-using-c-sharp