Error while creating DB

  • Hi,

    I was preparing a script for creating DBs, jobs and alerts. It was working fine earlier.

    Today I dropped all those existing objects and tried to create it using script.

    But it failed with the attached error... Please help. Thanks !!

    Smith.

  • You have a server-scoped DDL trigger on CREATE 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
  • GilaMonster (12/2/2014)


    You have a server-scoped DDL trigger on CREATE DATABASE?

    Yes Gila. I have enabled DDL trigger for auditing purpose. It inserts a record into one of the table in that database which is dropped already.

    Thanks a lot Gila..!!

  • Joy Smith San (12/2/2014)


    I have enabled DDL trigger for auditing purpose. It inserts a record into one of the table in that database which is dropped already.

    Hence will be failing, hence will make the CREATE DATABASE fail.

    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
  • Rectified the issue. Thanks a lot Gila...!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply