Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Server-level DDL Trigger Error Expand / Collapse
Author
Message
Posted Thursday, December 17, 2009 11:29 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, April 10, 2014 12:48 PM
Points: 94, Visits: 1,420
Hi Brian,

Just wondering if you ever posted an article to regarding your solution?
Thanks

Ryan
Post #835864
Posted Thursday, December 17, 2009 12:08 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, July 06, 2012 2:48 PM
Points: 182, Visits: 104
No, I never did. I've mentally moved on to other things, so I doubt I'll be doing it.

I found all the scripts and I attached them to this post. It's got everything you need, including install batch files. It's got the database itself, a viewer role, tables, stored procs, views, etc. There's also a test script in there. I commented everything pretty heavily, so you it's almost an article. Hopefully it will all be clear. Let me know if anything is missing and I'll try to get it. I'll try to answer any questions anybody might have about it.

It's a pity that SQL 2008 discontinued Notification Services. So, this solution is only good for SQL 2005. But hopefully it will be useful for people.


  Post Attachments 
SQL2005ServerAuditing.zip (26 views, 16.32 KB)
Post #835890
Posted Thursday, December 17, 2009 1:41 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, April 10, 2014 12:48 PM
Points: 94, Visits: 1,420
Brian,

Thanks for the quick response.
I am getting the following error for the two SPs
missing table 'Errors.dbo.usp_WriteError'

Is there anything I have to do to initiate the system?
Thanks
Post #835971
Posted Thursday, December 17, 2009 1:53 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, July 06, 2012 2:48 PM
Points: 182, Visits: 104
No problem at all. Glad to help.

Here's my Errors database, which contains the proc and table. This is my standard, BTW. I don't like doing error logging or the like in the primary database because a rogue process could cause the database or the disk to fill up. This database has a max size, so it won't crash anything if it fills up. You'll notice I also have a standard proc template which includes a call to that errors proc. So far, it's worked really well.


  Post Attachments 
Errors Database.zip (13 views, 9.42 KB)
Post #835982
Posted Monday, December 21, 2009 3:22 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, April 10, 2014 12:48 PM
Points: 94, Visits: 1,420
Brian

Thanks for all your help. Hopefully, I can test this out next week on a clean system since its not working on my testing environment. Is there any initialization process I need to start things running.
Thanks again.


Post #837606
Posted Monday, December 21, 2009 3:30 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, July 06, 2012 2:48 PM
Points: 182, Visits: 104
Hmmm... Of course, make sure Notification Services is installed. I'll check any documentation once I get back on Wed. Are you getting any errors?
Post #837610
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse