c# - How to execute sql script file in Sql Server 2008 -
i want execute sql script file if user want apply new database changes. script file present on server , if user wants apply new changes press button want know how execute script file particular server database in sql server 2008. want in c# code file
google c# sqlconnection, sqlcommand
look @ example provided here
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx
note: if sql in file have read content of file string first!
Comments
Post a Comment