Viewing 4 posts - 46 through 49 (of 49 total)
Hey Carpal, I got it to work. Look at the changes I made below.
Alter TRIGGER [ddl_trig_database]
ON ALL SERVER
FOR CREATE_DATABASE
AS
declare @results varchar(max)
SET @results = (SELECT EVENTDATA().value('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]','nvarchar(max)'))
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Default',
@recipients = 'me@home.com',
@body...
June 20, 2010 at 7:17 am
Thanks Carpal but the email still doesn't include the select statement. Any ideas? I'm running SQL 2008 R2.
June 20, 2010 at 6:38 am
I would like the users to be able to see all SQL jobs but prevent them from creating user accounts.
Even though a add the users to the SQLAgentOperator role...
June 16, 2010 at 6:32 am
Viewing 4 posts - 46 through 49 (of 49 total)