开发者

How to connect to SQL server 2000 from SQL server 2008

开发者 https://www.devze.com 2023-03-03 03:01 出处:网络
I need to connect to a SQL server 2000 Database from SQL server 2008. SQL server 2000 properties: ServerName:WinxpV1\\SQL2k

I need to connect to a SQL server 2000 Database from SQL server 2008.

SQL server 2000 properties:
ServerName:WinxpV1\SQL2k
UserName:Raymond
password:xxxxx
Computer Ip address:192.168.100.124

And I'm trying to connect to it using following method:

File-->Connect to:
ServerName:WinxpV1\SQL2k
Authentication:SQL server Authentication
Login:Raymond
Password:xxxxx

TCP/IP is enable in "SQL server utility" in SQL2000. but I can't connect to it开发者_JAVA技巧.


Can you use linked servers?

Exec master.dbo.sp_addlinkedserver
    @server=N'WinxpV1\SQL2k'
  , @srvproduct=N'SQL Server' --I'm guessing here
  , @provider=N'SQLNCLI'
  , @provstr=(Your connection string here)

You can use sp_addlinkedsrvlogin if you can't pass your credentials in the connection string. Here's a good site for connection strings too: http://www.connectionstrings.com/ (I have no affiliation with this site; I have found it helpful on many occasions.)

0

精彩评论

暂无评论...
验证码 换一张
取 消