找回密碼
 註冊
搜索
查看: 5687|回復: 1

SQL Server 2005 x64 利用linked server方式連結 SQL Server 7 32bit

[複製鏈接]
發表於 2008-1-23 09:02:05 | 顯示全部樓層 |閱讀模式
Connecting SQL Server 2005 x64 to SQL Server 7 (32bit) as a linked server!?
Filed under: Uncategorized — jmansford @ 14:10


We were having to use SSIS to pull data back and forth from an old SQL Server 7 server to our main production server which runs SQL Server 2005 SP2 x64 standard.

When I tried to create the linked server using:

Then I try

OLE DB provider "SQLNCLI" for linked server "MySQLServer7" returned message "Unspecified error".
OLE DB provider "SQLNCLI" for linked server "MySQLServer7" returned message "The stored procedure required to complete this operation could not be found on the server. Please contact your system administrator.".
Msg 7311, Level 16, State 2, Line 9
Cannot obtain the schema rowset “DBSCHEMA_TABLES_INFO” for OLE DB provider “SQLNCLI” for linked server “OSLO”. The provider supports the interface, but returns a failure code when it is used.Now the solution for connecting to SQL Server 2000 32-bit is to run instcat.sql as referenced at http://support.microsoft.com/default.aspx?scid=kb;en-us;906954

However, this isn’t really an option on SQL Server 7.0, luckily I found a very helpful post at http://forums.microsoft.com/MSDN ... =62887&SiteID=1 by Marek Adamczuk explaining that it’s simply that 32-bit editions are missing a stored procedure on the master database called sp_tables_info_rowset_64.

Marek’s solution is to create a wrapper on the master database as follows (his code not mine):

This works a treat - cheers Marek!

Reference: http://joelmansford.wordpress.co ... as-a-linked-server/
 樓主| 發表於 2008-1-23 10:30:51 | 顯示全部樓層
經過測試得知,只需要在SQL Server 7.0上,執行SQL Server 2000 SP4裡面附的instcat.sql,即可解決此問題!
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-11-21 18:47 , Processed in 0.011664 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表