I am using invoke-sqlcmd
to manage my databases, it works fine.
I save the output of the "Results" tab in Management Studio to a log file.
When I do a BACKUP DATABASE
, the output is done on the "Messages" tab and I would like to save it in the logfile.
Is there a way to get that output ? (or a table in SQL Server 2008 that stores the backup progression and results ?)
The SQL Server 2008 logs contain something but it is not as verbose as the "Messages" tab.