Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to ignore collation setttings

Status
Not open for further replies.

ikirkland

Programmer
Joined
Feb 27, 2002
Messages
16
Location
GB
Is there any way to ignore collation settings when you are running a query over 2 databases??

i.e.

select * from PTS_SRV.PTS_staging.dbo.securityrg
where FirstExternalSecurityCode in
(
select assetSEDOLCode from ODSSRV.ODS.dbo.asset
)


Produces the error:

Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
 
Are the fields identical in size, data type and the type of collation between the two databases. You are going to have to chat with the database adminstrator to look at how the code pages are in the databases. Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top