Have to prefix table with schema in queries

  • We recently recovered from a catastrophic failure of our database server. After recovering and restoring my database when I run any queries either in Query Analyzer or in my web application I get an "Invalid Object name 'someTableName' " error. If I change my query to use [schema].[tablename] the query returns fine.

    Is there a way to fix this?

    Thanks,

    Ben

  • ALTER SCHEMA schema_name TRANSFER object_name
    see Alter Schema topic in BOL

    Regards,Yelena Varsha

  • Thank you very much Yelena. That was a big help to me.

    I'm still trying to understand the new security in 2005.

Viewing 3 posts - 1 through 2 (of 2 total)

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