Run & mail result of this cmd DBCC SQLPERF(logspace) ???
-
6. března 2012 23:29
Hi,
I want to run this cmd below and send/mail its outcome to me, how do I do it ?
DBCC SQLPERF(logspace)
Thanks
Všechny reakce
-
7. března 2012 0:06
You could take a look at http://blogs.msdn.com/b/sqlagent/archive/2010/11/03/sql-database-mail-send-t-sql-results-by-email.aspx
Thanks
Sethu Srinivasan[MSFT]
SQL Server
-
7. března 2012 0:36
EXEC msdb..sp_send_dbmail
@profile_name = 'MailProfile',
@recipients = 'someone@emailaddress.com',
@subject = 'Result',
@body = 'The result is appended below.',
@execute_query_database = 'master',
@query = 'DBCC SQLPERF(''LogSpace'')'Regards, Matt Bowler MCITP, http://mattsql.wordpress.com/
- Navržen jako odpověď Jonathan KehayiasMVP, Moderator 7. března 2012 4:01
- Označen jako odpověď Maggie LuoMicrosoft Contingent Staff, Moderator 19. března 2012 10:00