anushahanna
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)."
"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)."
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
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
ASKER
good point. it Suppresses it in event viewer, not in SSMS though :(
Any other options?
Any other options?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks om_prakash_p.
http://forums.databasejournal.com/showthread.php?t=11196