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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -