Strange Msg 208, Level 16... output

  • 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!

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I will look into that. Inherited the db a couple of months ago and haven't found everything yet.

    Thansk!

    Jerry

  • 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