Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created linked server between sql server 2000 and sql serevr 2008 and it display db and table under this but when I run select statement it gives following error

SQL
SELECT * FROM [102.101.10.34].TA.dbo.acTransactionData



Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Msg 7392, Level 16, State 2, Line 1
Cannot start a transaction for OLE DB provider "SQLNCLI10" for linked server "102.101.10.34".
Posted

1 solution

Try using OpenQuery
SQL
SELECT a.*
FROM OPENQUERY(linkedservername,'SELECT *from sql2000database.dbo.table_or_view') a;
 
Share this answer
 
Comments
mohinig 5-Jun-13 1:22am    
I had already try this but giving the same error
uspatel 5-Jun-13 1:35am    
Check your datatype comparability for both servers.This error can be occurred due to column size exceeds.check http://msdn.microsoft.com/en-us/library/ms163363(v=sql.105).aspx
mohinig 5-Jun-13 3:11am    
I am executing only select statement and some times it work fine and sometimes through error

Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Arithmetic overflow occurred.
Msg 7392, Level 16, State 2, Line 1
Cannot start a transaction for OLE DB provider "SQLNCLI10" for linked server "102.101.10.34".
uspatel 5-Jun-13 3:17am    
can you share schema of source table......
mohinig 5-Jun-13 3:48am    
Actually it is view on remote server and I dont have rights to view its schema

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900