Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Open SQL Server Shell Commands

Author  Topic 

doco
Yak Posting Veteran

77 Posts

Posted - 2010-01-12 : 17:25:24
Not sure how to ask the question but, if I were to for instance open an access data base from a command line it might look something like this:
"C:\Program Files\Microsoft Office\Office11\msaccess.exe" "D:\ManatronProval\Reports\mdb\Mailing_labels.mdb"


How would one open run a sql script using command line?

Education is what you have after you've forgotten everything you learned in school

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-12 : 17:33:05
You can use sqlcmd.exe to execute SQL scripts via batch.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -