Answer Wiki:
There are several methods you are use. The easiest and most common would be to open the SQL Server Management Studio on the server or your workstation and open the file in that. This is the native editor for editing SQL Server scripts. Then click on the Execute button at the top, or press the F5 key, <CTRL> X, or <CTRL> E. This will run the script against what ever SQL Server you are connected to. You can also run scripts from the command line by using the sqlcmd command line utility and passing it either the script via the -Q or -q switches (they are different) or the -i switch to give it a file to get the script from.
Last Wiki Answer Submitted:  January 7, 2009  8:28 pm  by  Denny Cherry   64,550 pts.
All Answer Wiki Contributors:  Denny Cherry   64,550 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Can you explain the last paragraph clearly. Thanks!

Kavi

 10 pts.

 
 63,580 pts.