Microsoft has provided the following SqlCmd 2005 Utility Tutorials that will allow you to run ad hock SQL queries against a database from the command line in an interactive mode.
Lesson 1: Starting sqlcmd
http://technet.microsoft.com/en-us/library/ms166559.aspx
Lesson 2: Running Transact-SQL Script Files by Using sqlcmd
http://technet.microsoft.com/en-us/library/ms170572.aspx
No Comments