Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Linked servers and different SQL Server versions

Author  Topic 

theboyholty
Posting Yak Master

226 Posts

Posted - 2013-01-31 : 05:00:09
We have a new remote server and I am attempting to set up a linked server to connect to it.

The server I am linking FROM is Microsoft SQL Server 2005 SP2 - collation is Latin1_General_CI_AS
The server I am lilnking TO is Microsoft SQL Server 2008 (RTM) SP1 - collation is SQL_Latin1_General_CP1_CI_AS

I can set up the linked server but when I try to select from a table on the remote server, I get this message:
Msg 4012, Level 16, State 1, Line 1
An invalid tabular data stream (TDS) collation was encountered.


I've tried all sorts of COLLATE commands (such as Database_Default, Latin1_General_CI_AS, SQL_Latin1_General_CP1_CI_AS) but I can't get it to work. All the data types in the SQL 2008 database table exist in SQL 2005, so its not like i'm trying to read geography columns or anything like that.

Any ideas on how I can get around this, aside from installing a different version of SQL Server? (not an option, sadly)

Cheers.

---------------------------------------------------------------------------------
http://www.mannyroadend.co.uk A Bury FC supporters website and forum

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-01-31 : 05:04:49
why not do it in reverse. ie from 2008 to 2005. it may be that some of 2008 tables may have varchar fields with collations which is not supported in 2005 version.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

theboyholty
Posting Yak Master

226 Posts

Posted - 2013-01-31 : 05:38:31
Not really feasible unfortunatley, as we have a data warehouse which resides on the 2005 server and I'm trying to integrate the data from the new server into it.
Most of the work can be done successfully using SSIS, but there are a few queries which use linked servers within them, in any case, the question was more for filling the knowledge gap as I don't like not understanding why things don't work.

---------------------------------------------------------------------------------
http://www.mannyroadend.co.uk A Bury FC supporters website and forum
Go to Top of Page
   

- Advertisement -