Forum Replies Created

Viewing 4 posts - 46 through 49 (of 49 total)

  • RE: Email from DDL trigger

    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...

  • RE: Email from DDL trigger

    Thanks Carpal but the email still doesn't include the select statement. Any ideas? I'm running SQL 2008 R2.

  • RE: SQL jobs with securityadmin permission

    Thank you! That helped a lot

  • RE: SQL jobs with securityadmin permission

    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...

Viewing 4 posts - 46 through 49 (of 49 total)