I am using a SQL 2005 server whose collation is set to SQL_Latin1_General_CP1_CI_AS. I am manipulating a database on that server whose collation is set to
Latin1_General_CI_AS and, as far as I can see, all relevant fields within the tables on that database also have Latin1_General_CI_AS collation. When I create a new table within the database, the fields are also set as Latin1_General_CI_AS.
However, I am importing data from a MySQL database on a remote linked server using this SQL:
and all the fields within the newly created table appear to have been assigned SQL_Latin1_General_CP1_CI_AS collation which then gives me problems when I start comparing fields.
Is there a way I can force the SELECT INTO to generate fields with Latin1_General_CI_AS collation? I suspect if I did an explicit CREATE TABLE first that may resolve my problem but are there any other options?
Latin1_General_CI_AS and, as far as I can see, all relevant fields within the tables on that database also have Latin1_General_CI_AS collation. When I create a new table within the database, the fields are also set as Latin1_General_CI_AS.
However, I am importing data from a MySQL database on a remote linked server using this SQL:
Code:
SELECT * INTO TmpWebMbr FROM OPENQUERY (WebRemote, 'SELECT * FROM Mbr')
Is there a way I can force the SELECT INTO to generate fields with Latin1_General_CI_AS collation? I suspect if I did an explicit CREATE TABLE first that may resolve my problem but are there any other options?