RE: How to connect test to production system
- From: DWalker <none@xxxxxxxx>
- Date: Mon, 13 Aug 2007 13:57:53 -0700
changliw@xxxxxxxxxxxxxxxxxxxx (Charles Wang[MSFT]) wrote in
news:M55syrX3HHA.4100@xxxxxxxxxxxxxxxxxxxxxx:
Hi David,
[snip]
You may try adding some server aliases on your test systems. These
server aliases have the same names as the server names in production.
For example, your test SQL Server instance name is "Server1\SQL2K",
while your production SQL Server instance name is
"ProductServer\SQLServer". You can first run cliconfg.exe (SQL 2000
client) from command line or SQL Server Configuration Manager (SQL
2005 client) on your client computer to configure a server alias
"ProductServer\SQLServer" which represents your test SQL Server
instance "Server1\SQL2K" with a specific protocol (TCP/IP or Named
Pipes). After that, you can run:
Sp_addlinkedserver 'ProductServer\SQLSERVER'
Go
Sp_addlinkedsrvlogin 'ProductServer\SQLSERVER','True'
Go
Then you can run the following statement to query the northwind
database in your local test SQL Server instance "Server1\SQL2K":
SELECT * FROM [ProductServer\SQLServer].northwind.dbo.employees
Charles,
If I use the sp_addlinkedserver and sp_addlinkedsrvlogin, then I *don't*
need to use cliconfig first. Adding the linked server does the whole
thing. I got it to work this way.
Thanks.
David
.
- Follow-Ups:
- RE: How to connect test to production system
- From: Charles Wang[MSFT]
- RE: How to connect test to production system
- References:
- How to connect test to production system
- From: DWalker
- RE: How to connect test to production system
- From: Charles Wang[MSFT]
- How to connect test to production system
- Prev by Date: Can't Connect to MSDE Locally when Computer Is Not Connected to the Network
- Next by Date: Re: Problem Connecting to Sql Server 2005 locally by Name
- Previous by thread: RE: How to connect test to production system
- Next by thread: RE: How to connect test to production system
- Index(es):
Relevant Pages
|