简体   繁体   English

如何从SQL Server 2008连接到SQL Server 2000

[英]How to connect to SQL server 2000 from SQL server 2008

I need to connect to a SQL server 2000 Database from SQL server 2008. 我需要从SQL Server 2008连接到SQL Server 2000数据库。

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. 在SQL2000的“ SQL服务器实用程序”中启用了TCP / IP。 but I can't connect to it. 但我无法连接到它。

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. 如果无法在连接字符串中传递凭据,则可以使用sp_addlinkedsrvlogin。 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.) 这也是一个用于连接字符串的好站点: http : //www.connectionstrings.com/ (我与该站点没有任何隶属关系;我发现它在许多场合都很有帮助。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM