I have defined a schema in my database so far every time I make a SQL statement, I have to provide a schema ... SELECT * FROM [myschema] .table
I use the default schema and ALTER USER myUser to manage my studio with DEFAULT_SCHEMA [myschema]
and I still get invalid item 'table' when writing a query without schema (SELECT * FROM table)
is the scheme The name is a way to write and SELECT * table without having to specify all the time?
SQL Management Studio is used on SQL 2005.
Is the user a SA
, if this happens then this is not a work SA
users are always default for the dbo
schema.
The value of DEFAULT_SCHEMA is ignored if the user sysadmin is a member of the fixed server role. Sysadmin is a default schema of all members of the fixed server role.
Comments
Post a Comment