What is the proper syntax in SQL Server for addressing tables?

前端 未结 7 451
-上瘾入骨i
-上瘾入骨i 2021-01-18 10:05

This seems like a fairly obvious question, but I haven\'t been able to think of the proper term for what I am trying to ask, so coming up with reference material for this ha

7条回答
  •  执念已碎
    2021-01-18 10:13

    Pluralsight are wrong.

    Given the example of a stored procedure that uses a fully qualified name that refers to objects in the same database, here are two more reasons to not fully qualify in that manner:

    • If you have a stored procedure that refers to an object in the same database, it will break if you rename your database.

    • If you were to start using Visual Studio database tools to add your database scripts to source control, you get lots of warnings to deal with

    It is a good idea to understand and utilise schemas properly

提交回复
热议问题