SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Linked servers and different SQL Server versions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

theboyholty
Posting Yak Master

United Kingdom
221 Posts

Posted - 01/31/2013 :  05:00:09  Show Profile  Visit theboyholty's Homepage  Reply with Quote
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

India
52317 Posts

Posted - 01/31/2013 :  05:04:49  Show Profile  Reply with Quote
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

United Kingdom
221 Posts

Posted - 01/31/2013 :  05:38:31  Show Profile  Visit theboyholty's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000