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
 General SQL Server Forums
 New to SQL Server Programming
 Execute sql commands through command prompt

Author  Topic 

seemap123
Starting Member

2 Posts

Posted - 2007-11-15 : 15:28:32
Hi,

I wanted to know if there is a way to execute sql commands on the operating system's command line. If it is possible, then how do we do it ? For example to execute a SELECT * from Table statement what are we supposed to do ?

Thanks
S

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-15 : 15:31:50
You'd use sqlcmd for SQL Server 2005, osql for SQL Server 2000, and isql for SQL Server 7.0 or 6.5.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

seemap123
Starting Member

2 Posts

Posted - 2007-11-16 : 10:20:06
Thank you.
Go to Top of Page
   

- Advertisement -