What does SSMS use to create a linked SQL Server by name? -


we have several sql servers set in workplace linked each other , make use of 4-part db names in lot of our code. considering moving of our databases 1 server , assessing impact on our code, no 1 here seems know beyond linked server name protocol used in [server] portion of 4pt db name [server].[database].[dbo].[table]. [server] portion wins entry, dns, or sql server doing clever on it's own there?

if it's dns, simple enough move db's (minimal code changes), else , may have reconsider our strategy.

server symbolic name, datasrc matters.

suppose have linked server created this:

exec master.dbo.sp_addlinkedserver @server = n'test', @srvproduct=n'', @provider=n'sqlncli', @datasrc=n'server2008r2' 

and queries select test.database.schema.table. recreate linked server different @datasrc , still work, time read data different physical server (as long data there , security set right).


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -