Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Collation trouble with linked servers.

$
0
0

I have linked a database in a SQLServer2012 (11.03.3128) to a SQLServer 2005 (9.0.3042) database

The databases in question use the following collation:

2012: Latin1_General_100_CS_AS

2005: Danish_Norwegian_CI_AS

My goal is to both select and and insert data from the 2005 server to the 2012 server.

I've tried to change linked server settings, seting remote collation to false, and at the same time set Danish_Nor... as linked server collation. 

I've tried to query only timestamp with and without collation spesified
I've tried to query nvarchar with and without collation spesified

I've tried to query int 

Everyting fail with the same error: 

Msg 4012, Level 16, State 1, Line 1 An invalid tabular data stream (TDS) collation was encountered.

The only thing that works is when I create my own table on the 2012 server with Danish_No... collation on nVarchar columns.
This seems to work regardless of linked server settings and collumn collaton in the query.
The twin table of this one without collation fail with same error as before, even with collation spesified on column level in the query, and even when I only query an integer column.

As a possible solution I'm considering using a views in 2012 that has a compatible collation but would perfer a solution that doesen't require more objects that will need maintainance. And I havent come that far in my testing. Any advice here?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>