About

SQLCMD is Microsoft SQL Server's command line utility that allows you execute T-SQL commands from a command prompt. This utility was introduced in SQL Server 2005 and replaced SQL 2000's osql utility.

While commonly used from cmd.exe or Powershell, SQLCMD can also be accessed within SQL Server Management Studio by using SQLCMD mode.

This tag commonly relates to questions involving:

history | show excerpt | excerpt history