Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello expert

I don't know the concept of execution of script file
please send In detail how to execute script file in sql server


thank & regards
vinay gouda
Posted
Updated 8-Nov-11 1:33am
v2

Check this

I did not get your question exactly.

i hope you are looking for this

http://msdn.microsoft.com/en-us/library/ms170572.aspx[^]
 
Share this answer
 
 
Share this answer
 
To execute scripts in Sql Server Management Studio : first connect to a server then load a script file or write your own then press F5 to execute it.

If you want to execute a script from command prompt then consider sqlcmd command.

Sqlcmd -S servername\SQLEXPRESS -i test.sql


read its parameters info at :
http://msdn.microsoft.com/en-us/library/ms165702.aspx[^]

Ans if you want execute a script in your SQLs then consider using sp_exectesql
read more at :
http://msdn.microsoft.com/en-us/library/ms188001.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900