The following line works:
SELECT * FROM [myschema].users
But this does not:
SELECT * FROM users
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A default schema is user-specific:
More information about the ALTER TABLE for SQL 2005 might help you as well.
As this is user-specific, if you have multiple users, you will need to execute this query (on each database) for each user whose default schema you want to update.
It is important to note: