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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load .sql Files

Status
Not open for further replies.

greg303

Technical User
Oct 28, 2003
24
US
I have a file called test.sql that has some SQL command and I want to load this file from the command line of MS SQL, but have forgotten the command. Can anyone tell me what the command and syntax is for loading this file from the SQL command line with SQL Server express.

Thanks.
 
isql -U user -P password -i test.sql -o log_name.log


Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top