我需要从SQL Server 2008连接到SQL Server 2000数据库。
SQL server 2000 properties:
ServerName:WinxpV1\SQL2k
UserName:Raymond
password:xxxxx
Computer Ip address:192.168.100.124
我正在尝试使用以下方法连接到它:
File-->Connect to:
ServerName:WinxpV1\SQL2k
Authentication:SQL server Authentication
Login:Raymond
Password:xxxxx
SQL2000中的“SQL Server实用程序”中启用了TCP / IP。但我无法连接它。
答案 0 :(得分:1)
您可以使用链接服务器吗?
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)
如果无法在连接字符串中传递凭据,则可以使用sp_addlinkedsrvlogin。这里也是连接字符串的好网站:http://www.connectionstrings.com/(我与该网站没有任何关系;我发现它在很多场合都很有帮助。)