SQL server schema and default schema

前端 未结 3 1294
刺人心
刺人心 2020-11-30 10:53

I have a schema define in my database. Except now everytime I do a sql statement I have to provide the schema ... SELECT * FROM [myschema].table

I set

3条回答
  •  时光取名叫无心
    2020-11-30 11:23

    If you do not want to use "full qualified" SQl names, then you need to avoid creating your tables using any account or role that's not using the "dbo" default schema assigned. Why do you need to change the default schema on the user if you don't plan on using it?

提交回复
热议问题