Exec master.dbo.xp_sendmail
@recipients='<email address list>',
@message='Here are the current space used statistics.',
@subject='SQL Server Space Used Report',
@query='Exec sp_spaceused',
@dbuse='YourDatabase',
@width=256,
@attach_results = 'true'
If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
I ended up running the job in two steps, step one runs sp_spaceused on the 12 tables I check and sends the result to a file. Step 2 sends the results file to me (see below).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.