Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2005, 09:23 AM
Authorized User
 
Join Date: Dec 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default collation conflict

Hi All,
 I am getting "collation conflict for union operator" while
i try to connect union queries in different database but in same server.


 
Old July 25th, 2005, 09:50 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Vijay,

In Enterprise Manager, right mouse click on one of the databases in question and select Properties. The brings up the database properties page. ON the General tab of the properties page at the bottom, it will list the Collation name. Check this for both databases. Are they different? If they are, there is your problem. The solution is not a good one. You can't really change a database collation after it is created.

However, if they are the same, you can set collation PER COLUMN in a database. OPen the table in one of the tables in question in design mode and click on one of teh columns you are joining on. Look at the properties of that column, specifically the Collation. Do the same for the other table. Are the Collations different for the two tables? YOu should be able to change the collation for one column to match the other.

Hope this helps...

Scott






Similar Threads
Thread Thread Starter Forum Replies Last Post
Substring-after collation bonekrusher XSLT 2 May 11th, 2007 09:31 AM
Need to change Collation sequence kscase SQL Server 2005 2 April 9th, 2007 10:20 AM
SQL Collation to Greek jmjyiannis SQL Server 2000 0 September 14th, 2005 11:59 AM
SQL7-SQL2K collation problems dhulse SQL Server 2000 2 July 6th, 2004 03:47 PM
Change Collation vincentc SQL Server 2000 2 October 2nd, 2003 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.