sql server - Invalid Object Error in spite of the Schema being the default Schema for the User -
i've problem while executing select query ssms (sql server 2008).it gives out error saying 'invalid object '
user name: admin defaultschema: s1 table being accessed: employee
query1:
select * employee
query2:
select * s1.employee
in case query1 fails above said error whereas query2 works fine , fetches values. can me figure issue here. in spite of having s1 default schema user 'admin' still asks me append schema name query executed.
thanks.
i'm going guess, based on fact user name "admin", user member of sysadmin server role. if true, default schema setting user ignored members of sysadmin role automatically default schema of dbo. see documentation alter user further details.
Comments
Post a Comment