|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Yesterday @ 11:22 AM
Points: 23,
Visits: 242
|
|
I love this article: http://www.sqlservercentral.com/articles/Auditing/64176/
However, I would like to know how do you audit sp_rename?
Or to most DBAs this isn't important.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, April 05, 2013 9:32 AM
Points: 42,
Visits: 170
|
|
| Look here for a full solution: http://www.sqlservercentral.com/Forums/Topic948331-149-1.aspx
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Yesterday @ 11:22 AM
Points: 23,
Visits: 242
|
|
I am looking for this page http://www.sqlservercentral.com/Forums/Topic948331-149-1.aspx
What happened to it?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, April 05, 2013 9:32 AM
Points: 42,
Visits: 170
|
|
You can see an alternative "article" I wrote for this at:
http://www.sqlservercentral.com/Forums/Topic947481-391-1.aspx
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, March 14, 2013 7:33 AM
Points: 126,
Visits: 325
|
|
| How are you guys handling when the server trigger kicks off when a user is in the dbcreator role but doesn't have access to insert into the table that houses all the ddl trigger events? Thks!
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, April 05, 2013 9:32 AM
Points: 42,
Visits: 170
|
|
create trigger ServerAuditTrigger on all server -- Audit server level and database level into dbadata.dbo.ServerAudit -- The database level is also audited into <database>.dbo.DatabaseAudit with execute as ''server_audit''for ddl_events
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 10:27 AM
Points: 1,
Visits: 13
|
|
@fracionero (5/6/2008)
My insert command:
INSERT INTO [SRSQL1001\MANAGEMENT].[DBA_AUDIT].[dbo].[ENV_SRV_INS_DB_CHG] ([ENV_SRV_INS_DB_CHG_Server] ,[ENV_SRV_INS_DB_CHG_Name] ,[ENV_SRV_INS_DB_CHG_EventType] ,[ENV_SRV_INS_DB_CHG_PostTime] ,[ENV_SRV_INS_DB_CHG_Login] ,[ENV_SRV_INS_DB_CHG_TSQLCommand] ,[ENV_SRV_INS_DB_CHG_Completed]) values(@ServerName,@DBName,@EventType,@PostTime,@login,@TSQLCommand,@comp)
errors set
Msg 3984, Level 16, State 1, Line 1 Cannot acquire a database lock during a transaction change. Msg 3985, Level 16, State 2, Line 1 An error occurred during the changing of transaction context. This is usually caused by low memory in the system. Try to free up more memory. Msg 3984, Level 16, State 1, Line 1 Cannot acquire a database lock during a transaction change. Msg 3985, Level 16, State 1, Line 1 An error occurred during the changing of transaction context. This is usually caused by low memory in the system. Try to free up more memory.
I have checked if I delete insert command database is created without errors.
Thanks in advance for your help
F.Racionero
Has anyone figured out a solution to this? My trigger record is being inserted into the other server, but I sill get these error messages.
Thanks! JMB
|
|
|
|