Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
declare @query varchar(1000)
set @query = getBufferCache
exec xp_cmdshell @query
declare @body1 varchar(1000)
exec @body1 = getBufferCache --'Server :'+@@servername+ ' My First Database Email '
EXEC msdb.dbo.sp_send_dbmail @recipients='kb@myemail.com'
@subject = 'My Mail Test',
@body = @body1,
@body_format = 'HTML' ;
declare @query varchar(1000)
set @query = 'exec databasename.dbo.getBufferCache'
EXEC msdb.dbo.sp_send_dbmail @recipients='kb@myemail.com'
@subject = 'My Mail Test',
@execute_query_database = @query
@body_format = 'HTML' ;
use angelsql
go
declare @querystring nvarchar(4000)
set @querystring = 'exec DBNAME.dbo.getBufferCache'
EXEC msdb.dbo.sp_send_dbmail @recipients='kb@myemail.com',
@subject = 'My Mail Test',
@query = @querystring,
@body_format = 'HTML' ;