English 中文(简体)
Adding linked server - SQL Server 2005 - Changing the name later
原标题:

I m developing a web app in a testing environment with test sql servers and databases. I m currently adding a linked server and accessing the databases and tables in the linked server using [Servername].[DatabaseName].dbo.[TableName].

But after pushing it to production the DB servers name will change. So should i need to open each and every stored procedure again and change the server name?

What is the usual practice?

Thank you.

最佳回答

The link name need not be the same as the actual target server name. The easy solution is to use the same linked server name on both the development and production servers, just link to different actual servers. A development server might actually link to itself, for example.

问题回答

暂无回答




相关问题
SQL server timeout 2000 from C# .NET

I have run into a strange problem using SQL Server 2000 and two linked server. For two years now our solution has run without a hitch, but suddenly yesterday a query synchronizing data from one of the ...

How to create Linked Server targeting remote ODBC?

I have a WebTrends ODBC source on server1 and a SQL Server 2005 on server2. I want to connect to this ODBC from SQL Server on server2. So far, I managed to connect to this ODBC from SQL Server which ...

Problem with select statement via a linked server

I am using MS SQL Server 2000 and have a link from a test db to a live db which is in replication. The link seems to work fine and I can select from any of the tables using any of the fields apart ...

热门标签