Click here to Skip to main content
14,739,273 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
Updated 8-Nov-11 2:33am

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 :[^]

Ans if you want execute a script in your SQLs then consider using sp_exectesql
read more at :[^]
Check this

I did not get your question exactly.

i hope you are looking for this[^]

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