• Hi, could this be because of What Amit mentioned above?

    The sample script will not work is there are multiple objects with the same name but different owners, in the same database.

     

    http://poorsql.com for T-SQL formatting: free as in speech, free as in beer, free to run in SSMS or on your version control server - free however you want it.