The dbo. prefix in database object names, can I ignore it?

前端 未结 6 932
无人及你
无人及你 2021-02-19 07:15

I am looking for a performant default policy for dealing with the .dbo prefix.

I realize that the dbo. prefix is more than syntactic noise, however I got through the pa

6条回答
  •  盖世英雄少女心
    2021-02-19 07:58

    Most of the time you can ignore it. Sometimes you will have to type it. Sometimes when you have to type it you can just type an extra '.':

    SELECT * FROM [LinkedServer].[Database]..[Table]
    

    You'll need to start watching for it if you start using extra schemas a lot more, where you might have two schemas in the same database that both have tables with the same name.

提交回复
热议问题