Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to run a .sql file in sql query analyser

Status
Not open for further replies.

mkey

Programmer
Joined
Oct 3, 2001
Messages
288
Location
CA
Hi All,
In oracle one can run a script file with a .sql extention like:
start c:\myscript.sql

How do you do something similar in sql server 7.0?

thanks

 
Just open the .sql file from within query analyser, then either click the green arrow on the toolbar, or hit F5 to run the code.

You will then get a message in the results pane below informing you of the success (or otherwise) of the code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top