Link to home
Start Free TrialLog in
Avatar of anushahanna
anushahannaFlag for United States of America

asked on

suppress backup message output

When a backup is done through code, is there a way to suppress the message, so that it does not get displayed:
"Processed 152 pages for database 'FULLBackup', file 'FULLBackup' on file 1.
Processed 2 pages for database 'FULLBackup', file 'FULLBackup_log' on file 1.
BACKUP DATABASE successfully processed 154 pages in 0.218 seconds (5.754 MB/sec)."
Avatar of Om Prakash
Om Prakash
Flag of India image

Avatar of anushahanna

ASKER

Thanks. But SQL backup does not use xp_cmdshell or parameters like BCP?
Try:

Suppress SQL Server Backup Messages

Everytime a SQL Server Backup (or restore) is performed SQL Server writes a message both to the SQL Server Errorlog and the Windows Eventlog.  In order to reduce the noice in these logs where there is a large number of databases the messages can be suppressed using the SQL Server Trace Flag 3226.

http://wardyit.com/blog/blog/archive/2005/10/25/49.aspx
http://www.sqlservercentral.com/Forums/Topic421160-357-1.aspx
good point. it Suppresses it in event viewer, not in SSMS though :(

Any other options?
ASKER CERTIFIED SOLUTION
Avatar of Om Prakash
Om Prakash
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks om_prakash_p.