I had a problem executing a select query from SSMS (SQL Server 2008). It gives an error "Invalid object"
User Name: admin DefaultSchema: S1 Table being accessed: employee
Query1:
select * from employee
Query2:
select * from S1.employee
In this case, Query1 fails with the above error, while Query2 works fine and retrieves the values. Can someone help me figure it out here. Despite having S1 as the default schema for the user βadminβ, he still asks me to add a schema name to fulfill the request.
Thanks.
source share