July 28, 2010 at 1:54 pm
I have a stored procedure create script that works on a database. I am trying to recreate the DB schema locally and get the following error when I run the script:
Msg 208, Level 16, State 1, Procedure ddl_SchemaModified, Line 5
Invalid object name 'SchemaAudit..DDLInfo'.
I cannot find a reference to ddl_SchemaModified or SchemaAudit..DDLInfo anywhere, including Microsoft.com AND Google.
Anyone else see this before and maybe even solved the issue?
Thansk!
July 28, 2010 at 2:17 pm
Sounds like someone's written a custom DDL trigger, either as a database-level trigger in the DB you're recreating or as a server-level trigger.
It's not a built-in object, it's something specific to your instance.
select * from sys.server_triggers
SELECT * FROM sys.triggers WHERE parent_class_desc = 'DATABASE'
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 28, 2010 at 2:51 pm
I will look into that. Inherited the db a couple of months ago and haven't found everything yet.
Thansk!
Jerry
July 28, 2010 at 3:08 pm
Wow! The ddl_SchemaModified one is a database trigger. Good call!
Thanks for the help.
Jerry
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply