The sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files at the command prompt, in Query Editor in SQLCMD mode, in a Windows script file or in an operating system (Cmd.exe) job step of a SQL Server Agent job. This utility uses OLE DB to execute Transact-SQL batches. sqlcmd is part of SQL Server 2005 and SQL Server 2008.
Example:
In command line call
Maheshkumar S Tiwari edited Revision 1. Comment: Added tags
Toni edited Original. Comment: corrected the USE statement and edited some text.