Question : Schema Changes  by User


Hello everyone I need to track and see DDL Operations (drop,create,alter,delete) on all our databases.
I understand that I can use the Schema Changes History Report that comes with SQL Server 2005 but not really happy with this.
Can someone please provide or direct me to  a script that  show me

Databasename
Objectname
Type
DDL Operation
Time
Loginname
Acutall Text

It would be great if the script would allow me to choose a whole month, week, day if all possible.

If anyone has anything like this around it would really help me out.

Thank for your time and have a great weekend.

Answer : Schema Changes  by User

Just to clarify, delete is not a DDL, but a DML command.

For DDL you can create DDL triggers for the create, drop and alter table, etc. Check the following links for details:

http://www.mssqltips.com/tip.asp?tip=1006

http://msdn.microsoft.com/en-us/ms189540(SQL.90).aspx

http://searchsqlserver.techtarget.com/tip/Create-DDL-table-in-SQL-Server-2005-to-audit-DDL-trigger-activity

Random Solutions  
 
programming4us programming4us