Use the sqlcmd utility interactively to execute T-SQL statements in the console. To interactively execute T-SQL statements by using sqlcmd, run the utility without using the -Q, -q, -Z, or -i options ...