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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

linux - phpmyadmin, neginx error.log - Check group www-data has read access and open_basedir -