June 19, 2016 at 8:16 pm
I have successfully created ddl trigger to track all changes to the database. Is it possible to do an initial load of all sql objects into this table that would match the EVENT_INSTANCE/TSQLCommand format that is created after the DDL trigger was created.
June 20, 2016 at 5:11 am
without your table definition so we know what you are auditing, we cannot help much, but what you can do is simply insert into your audit table, from the sys.tables structure for example.
INSERT INTO DDLChangeTrackerTable(TableName, OtherColumns)
SELECT
name AS TableName
OtherColumns
FROM sys.tables
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy