Could not find server "DB" name in sys.servers (no dbo problem)

Today I ran into a problem saying that my "server" was not found in sys.servers. Error:

Could not find server 'DB name' in sys.servers

This is not a problem using a prefix in some cases, but not others, as with the "dbo" problems that others have.

+4
source share
2 answers

There are many situations where you can get this error, and many of them are covered by StackOverflow. However, one case that may especially occur on shared servers is simply that the database name has a period (period) in it. For example, if his name mysite.com_DB. This will automatically cause a problem.

, , , , :

mysite.com_DB.Table_name

:

[mysite.com_DB].Table_name
+4

, , . (sp_addlinkedserver)

, , .    * sys.sysservers

+6

Source: https://habr.com/ru/post/1536782/


All Articles