Solved

Linked server from SQL Server 2008 R2 64 bit to SQL Server 2000 32 bit is failing on updated statement

Posted on 2012-04-11
6
2,191 Views
Last Modified: 2012-04-22
linked server problem when I run update statement from SQL Server 2008 R2 64 bit to SQL Server 2000 32 bit. It returns error given below;

Msg 682, Level 22, State 148, Line 1 Internal error. Buffer provided to read column value is too small. Run DBCC CHECKDB to check for any corruption.

I have tried every thing and have created sp_tables_info_rowset_64 stored procedure in master database of SQL Server 2000. It enabled select and insert into the SQL Server 2000 database tables but when I try to Update records on SQL Server 2000 database tables above error comes up.

Any comments and suggestions are appreciated.

Thanks.
0
Comment
Question by:ezkhan
  • 3
  • 2
6 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 37834902
0
 
LVL 39

Expert Comment

by:lcohan
ID: 37834923
Can you try to copy your SQL 2008 record set data from SQL 2008 to the SQL 2000 in a "staging" table by using INSERT then run the UPDATE at SQL 2000 side in a stored proc by using both these tables - staging and destination - that are in SQL 2000?
0
 

Author Comment

by:ezkhan
ID: 37845174
Hi,

I have figured out the solution. To update or insert statement with multiple joins involved in it across linked servers from SQL Server 2008 R2 64 bit to SQL Server 2000 32 bit requires the installation of service pack 3 or 4 on SQL Server 2000 machine. Once it is installed then under windows authentication or under SQL Server authentication with administrative rights user needs to run INSTCAT.SQL script.

For a default instance
osql -E -S <LinkedServerName> -i <Location>\instcat.sql



For a named instance
osql -E -S <LinkedServerName>\<InstanceName> -i <Location>\instcat.sql


Microsoft Reference:
http://support.microsoft.com/kb/906954/

Thanks.
0
 

Accepted Solution

by:
ezkhan earned 0 total points
ID: 37853325
I've requested that this question be closed as follows:

Accepted answer: 0 points for ezkhan's comment #37845174

for the following reason:

Hi,<br /><br />I have figured out the solution. To update or insert statement with multiple joins involved in it across linked servers from SQL Server 2008 R2 64 bit to SQL Server 2000 32 bit requires the installation of service pack 3 or 4 on SQL Server 2000 machine. Once it is installed then under windows authentication or under SQL Server authentication with administrative rights user needs to run INSTCAT.SQL script.<br /><br />For a default instance<br />osql -E -S &lt;LinkedServerName&gt; -i &lt;Location&gt;\instcat.sql<br /><br /><br /><br />For a named instance<br />osql -E -S &lt;LinkedServerName&gt;\&lt;Instan<wbr />ceName&gt; -i &lt;Location&gt;\instcat.sql<br /><br /><br />Microsoft Reference:<br /><a href="http://support.microsoft.com/kb/906954/" target="_blank">http://support.microsoft.c<wbr />om/kb/9069<wbr />54/</a><br /><br />Thanks for your answers and comments.
0
 

Author Comment

by:ezkhan
ID: 37853326
Why 0 points are being awarded????
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now