sql - Suppress 'Use' command output while running MSSQL Server script -
i have basic sql script executing via sqlcmd. first line in output use command specify database. i'm writing results out text file, don't want include response 'use' command, query. in other words, don't want see "changed database context 'database_name'." @ top of output. there way suppress output?
instead of:
use somedb go select * dbo.sometable
you try:
select * somedb.dbo.sometable
Comments
Post a Comment