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)."
LVL 6
anushahannaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Om PrakashCommented:
0
anushahannaAuthor Commented:
Thanks. But SQL backup does not use xp_cmdshell or parameters like BCP?
0
Om PrakashCommented:
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
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

anushahannaAuthor Commented:
good point. it Suppresses it in event viewer, not in SSMS though :(

Any other options?
0
Om PrakashCommented:
I think this cannot be done.
Only thing you can supress is the "x rows affected" when you execute the SQL query. This can be done by using SET NOCOUNT ON

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anushahannaAuthor Commented:
Thanks om_prakash_p.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.