Showing posts with label resolve. Show all posts
Showing posts with label resolve. Show all posts

Sunday, March 25, 2012

collation error for patindex (sql 2000)

Hi, what do I do with this error please:
Server: Msg 446, Level 16, State 9, Line 3
Cannot resolve collation conflict for patindex operation

Here is the script in question.

use mosaikDB737
exec sp_MSforeachDB
'
use [?]
insert into mosaikDB737.dbo.SearchOutput2 select sk.loginname as searchedTxt, object_name(id) AS ProcName ,Len(SubString(o.text,1, PatIndex(''%'' + ltrim(rtrim(sk.loginname))+ ''%'', o.text)))-Len(Replace(SubString(o.text,1, PatIndex
(''%'' + ltrim(rtrim(sk.loginname)) + ''%'', o.text)),char(13),''''))+1 AS Line,
PatIndex(''%'' + ltrim(rtrim(sk.loginname)) + ''%'', o.text) AS Position, ''[?]'' as dbName
from syscomments as o inner join mosaikDB737.dbo.loginListInput as sk on o.text like ''%'' + ltrim(rtrim(sk.loginname)) + ''%''
ORDER BY searchedTxt,ProcName, Line, position'
select * from mosaikDB737.dbo.SearchOutput2

Thanks a lot

Check collation of loginname and text columns. Depending on your installation / configuration you may have to modify one or the other to the corresponding collation using the COLLATE clause. See the COLLATE topic in Books Online for more details on collations, how they are used in string comparisons etc.|||they re different in some databases man. Can I cast loginname to the collation of o.text on the fly dynamically in my script?|||You can't use COLLATE clause dynamically. So you will have to cast both columns to a common collation and then do the comparison. Of course, this means that you will have to pick a collation that will work with your data otherwise you will get incorrect results.|||

that s the pb man. as u can see. using "?" my script goes through all the databases. So if one of the databases has a different collation for the column syscomments.text than the one i will choose then all my script might fail.

|||As I suggested, you change each column that you are comparing to a common collation. This may or may not work depending on the data.|||That was perfect|||

Umachandar Jayachandran - MS wrote:

Check collation of loginname and text columns. Depending on your installation / configuration you may have to modify one or the other to the corresponding collation using the COLLATE clause.

P.S: First I want to let you know that the collation issue has been solved thanks to your help.

I read Collate in BOL but i m still not sure how that works exactly for my script.

for loginname column I have control over it since it s in a database that I create my self. But as you can see text column represents the text for all the SPs of all the databases in the instance.

After checking we found that the text column is 29 times of collation Latin1_General_BIN and 13 times of collation SQL_Latin1_General_CP1_CI_AS.

So my question pls is this:

as you can see that in my script I have the columns sk.LoginName and o.text many times. If I choose to cast both columns to the collation SQL_Latin1_General_CP1_CI_AS. Will I have to put your suggestion COLLATE SQL_Latin1_General_CP1_CI_AS after each occurence of those 2 columns in my script or just in one occurence.

Tell me please if this is correct. I put your suggestion in all the loginname and text occurences in the script (I mean whenever there is loginname or o.text in the script I put COLLATE SQL_Latin1_General_CP1_CI_AS ) as in teh following:

use mosaikDB737
exec sp_MSforeachdb
'
use [?]
insert into mosaikDB737.dbo.SearchOutput1 select sk.LoginName COLLATE

SQL_Latin1_General_CP1_CI_AS as searchedTxt , object_name(id) AS ProcName ,Len(SubString

(o.text,1, PatIndex(''%'' + ltrim(rtrim(sk.LoginName COLLATE

SQL_Latin1_General_CP1_CI_AS))+ ''%'', o.text)))-Len(Replace(SubString(o.text,1, PatIndex
(''%'' + ltrim(rtrim(sk.LoginName COLLATE SQL_Latin1_General_CP1_CI_AS)) + ''%'', o.text

COLLATE SQL_Latin1_General_CP1_CI_AS)),char(13),''''))+1 AS Line,
PatIndex(''%'' + ltrim(rtrim(sk.LoginName COLLATE SQL_Latin1_General_CP1_CI_AS)) + ''%'',

o.text COLLATE SQL_Latin1_General_CP1_CI_AS) AS Position, ''[?]'' as dbName
from syscomments as o inner join mosaikDB737.dbo.LoginListInput as sk on o.text like

''%'' + ltrim(rtrim(sk.LoginName COLLATE SQL_Latin1_General_CP1_CI_AS)) + ''%''
ORDER BY searchedTxt,ProcName, Line, Position'
select * from mosaikDB737.dbo.SearchOutput1 order by dbName, ProcName

I just chose to cast every thing to the collation SQL_Latin1_General_CP1_CI_AS. I hope that s Ok.

Muchas Gracias

Thursday, March 22, 2012

collation conflict for concatenation operation

Hi,
I'm facing the error as the subject stated , "Cannot resolve collation
conflict for concatenation operation".
Base on running "print cast(
databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
I want to do searching on records in tables with partial matching on the
keywords.
the sql statement is :
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? + '%' ) ) )
order by co.active_from_date desc
as I will run this statement in java, the "?" will be filled into string and
both fields are nvarchar.
how should I do to solve this problm? thank you.
Try adding collation designators to the LIKE predicates:
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
OR (title_en like '%' + ? + '%' collate
inese_Taiwan_Stroke_CI_AS) ) )
order by co.active_from_date desc
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"little C" <little C@.discussions.microsoft.com> wrote in message
news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> Hi,
> I'm facing the error as the subject stated , "Cannot resolve collation
> conflict for concatenation operation".
> Base on running "print cast(
> databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
> collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
> I want to do searching on records in tables with partial matching on the
> keywords.
> the sql statement is :
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? +
' ) ) )
> order by co.active_from_date desc
> as I will run this statement in java, the "?" will be filled into string
and
> both fields are nvarchar.
> how should I do to solve this problm? thank you.
>
|||thanks Adam,
the problem is solved, I need to put "collate Chinese_Taiwan_Stroke_CI_AS"
right next to each "?". thanks a lot.
Chris C
"Adam Machanic" wrote:

> Try adding collation designators to the LIKE predicates:
>
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
> OR (title_en like '%' + ? + '%' collate
> inese_Taiwan_Stroke_CI_AS) ) )
> order by co.active_from_date desc
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "little C" <little C@.discussions.microsoft.com> wrote in message
> news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> ' ) ) )
> and
>
>
sqlsql

collation conflict for concatenation operation

Hi,
I'm facing the error as the subject stated , "Cannot resolve collation
conflict for concatenation operation".
Base on running "print cast(
databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
I want to do searching on records in tables with partial matching on the
keywords.
the sql statement is :
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? + '%' ) )
)
order by co.active_from_date desc
as I will run this statement in java, the "?" will be filled into string and
both fields are nvarchar.
how should I do to solve this problm? thank you.Try adding collation designators to the LIKE predicates:
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
OR (title_en like '%' + ? + '%' collate
inese_Taiwan_Stroke_CI_AS) ) )
order by co.active_from_date desc
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"little C" <little C@.discussions.microsoft.com> wrote in message
news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> Hi,
> I'm facing the error as the subject stated , "Cannot resolve collation
> conflict for concatenation operation".
> Base on running "print cast(
> databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
> collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
> I want to do searching on records in tables with partial matching on the
> keywords.
> the sql statement is :
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? +
' ) ) )
> order by co.active_from_date desc
> as I will run this statement in java, the "?" will be filled into string
and
> both fields are nvarchar.
> how should I do to solve this problm? thank you.
>|||thanks Adam,
the problem is solved, I need to put "collate Chinese_Taiwan_Stroke_CI_AS"
right next to each "?". thanks a lot.
Chris C
"Adam Machanic" wrote:

> Try adding collation designators to the LIKE predicates:
>
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
> OR (title_en like '%' + ? + '%' collate
> inese_Taiwan_Stroke_CI_AS) ) )
> order by co.active_from_date desc
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "little C" <little C@.discussions.microsoft.com> wrote in message
> news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> ' ) ) )
> and
>
>

collation conflict for concatenation operation

Hi,
I'm facing the error as the subject stated , "Cannot resolve collation
conflict for concatenation operation".
Base on running "print cast(
databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
I want to do searching on records in tables with partial matching on the
keywords.
the sql statement is :
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? + '%' ) ) )
order by co.active_from_date desc
as I will run this statement in java, the "?" will be filled into string and
both fields are nvarchar.
how should I do to solve this problm? thank you.Have you tried converting the data to unicode before
concatination ?
Peter
"I favor the Civil Rights Act of 1964 and it must be
enforced at gunpoint if necessary."
Ronald Reagan
>--Original Message--
>Hi,
>I'm facing the error as the subject stated , "Cannot
resolve collation
>conflict for concatenation operation".
>Base on running "print cast(
>databasepropertyex( 'master', 'collation' ) as varchar
(128) )", the
>collation of sql2000 database
is "Chinese_Taiwan_Stroke_CI_AS" .
>I want to do searching on records in tables with partial
matching on the
>keywords.
>the sql statement is :
>select co.cms_content_id, co.title_en,
ca.cms_category_id,
>ca.category_name_en
>from cms_content co, cms_sub_category sc, cms_category ca
>where co.cms_sub_category_id = sc.cms_sub_category_id
>AND sc.cms_category_id = ca.cms_category_id
>AND co.status = 'active' collate
Chinese_Taiwan_Stroke_CI_AS
>AND(((title_ch like '%' + ? + '%' ) OR (title_en
like '%' + ? + '%' ) ) )
>order by co.active_from_date desc
>as I will run this statement in java, the "?" will be
filled into string and
>both fields are nvarchar.
>how should I do to solve this problm? thank you.
>.
>|||Try adding collation designators to the LIKE predicates:
select co.cms_content_id, co.title_en, ca.cms_category_id,
ca.category_name_en
from cms_content co, cms_sub_category sc, cms_category ca
where co.cms_sub_category_id = sc.cms_sub_category_id
AND sc.cms_category_id = ca.cms_category_id
AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
OR (title_en like '%' + ? + '%' collate
inese_Taiwan_Stroke_CI_AS) ) )
order by co.active_from_date desc
--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"little C" <little C@.discussions.microsoft.com> wrote in message
news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> Hi,
> I'm facing the error as the subject stated , "Cannot resolve collation
> conflict for concatenation operation".
> Base on running "print cast(
> databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
> collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
> I want to do searching on records in tables with partial matching on the
> keywords.
> the sql statement is :
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? +
' ) ) )
> order by co.active_from_date desc
> as I will run this statement in java, the "?" will be filled into string
and
> both fields are nvarchar.
> how should I do to solve this problm? thank you.
>|||thanks Adam,
the problem is solved, I need to put "collate Chinese_Taiwan_Stroke_CI_AS"
right next to each "?". thanks a lot.
Chris C
"Adam Machanic" wrote:
> Try adding collation designators to the LIKE predicates:
>
> select co.cms_content_id, co.title_en, ca.cms_category_id,
> ca.category_name_en
> from cms_content co, cms_sub_category sc, cms_category ca
> where co.cms_sub_category_id = sc.cms_sub_category_id
> AND sc.cms_category_id = ca.cms_category_id
> AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> AND(((title_ch like '%' + ? + '%' collate Chinese_Taiwan_Stroke_CI_AS)
> OR (title_en like '%' + ? + '%' collate
> inese_Taiwan_Stroke_CI_AS) ) )
> order by co.active_from_date desc
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "little C" <little C@.discussions.microsoft.com> wrote in message
> news:904CF870-C526-4BF5-AB89-3DAA75DC004D@.microsoft.com...
> > Hi,
> >
> > I'm facing the error as the subject stated , "Cannot resolve collation
> > conflict for concatenation operation".
> >
> > Base on running "print cast(
> > databasepropertyex( 'master', 'collation' ) as varchar(128) )", the
> > collation of sql2000 database is "Chinese_Taiwan_Stroke_CI_AS" .
> >
> > I want to do searching on records in tables with partial matching on the
> > keywords.
> >
> > the sql statement is :
> >
> > select co.cms_content_id, co.title_en, ca.cms_category_id,
> > ca.category_name_en
> > from cms_content co, cms_sub_category sc, cms_category ca
> > where co.cms_sub_category_id = sc.cms_sub_category_id
> > AND sc.cms_category_id = ca.cms_category_id
> > AND co.status = 'active' collate Chinese_Taiwan_Stroke_CI_AS
> > AND(((title_ch like '%' + ? + '%' ) OR (title_en like '%' + ? +
> ' ) ) )
> > order by co.active_from_date desc
> >
> > as I will run this statement in java, the "?" will be filled into string
> and
> > both fields are nvarchar.
> >
> > how should I do to solve this problm? thank you.
> >
>
>

collation conflict

why do i get collation conflict when i used temp table ??

Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.

i solved it by using COLLATE Latin1_General_CI_AS (the column name)

will i have collation conflicts again when i put my web app on a web hosting company??

Hi Kakusei,

why do i get collation conflict when i used temp table ??

I assume your database use a different collation from the default one( the default collation is the one which is used by your sql instance). If you create a user database and specify a different default collation thanmodel, the user database has a different default collation thantempdb. All temporary stored procedures or temporary tables are created and stored intempdb. This means that all implicit columns in temporary tables and all coercible-default constants, variables, and parameters in temporary stored procedures have collations that are different from comparable objects created in permanent tables and stored procedures.

This could lead to problems with a mismatch in collations between user-defined databases and system database objects. As to fix it, just specify the collation name when you create temp tables, for example:

CREATE TABLE #TestTempTab (PrimaryKey int PRIMARY KEY, Col1 nchar COLLATE database_default -- use database_default option to explictly specify the temp table use the same collation as the user database )
You can find more detailed information at:http://msdn2.microsoft.com/en-us/library/ms190920.aspx
Hope my suggestion helps
|||

Hi Bo, thanks for your reply and solution.

I also want to know what is the default collation ? and how can i change it back to the default collation now?

|||

Hi Kakusei,

The default collation is the one which your selected when you install sql server. It diverse from the sql verstion, local region, etc. You can check it through Management Studio (After you have loggin to sql server , right click the instance name and select "properties", there is one entry called "server collation" which is the default collation i mean here). All the talbes, procedure, functions use default collation in tempdb. If you do not specify a collation when creating database/talbes in your user database, then it use default collation.

I suggest you reading that madn article again, it's highly explanatory. I'm sure you will learn pretty a lot after finish reading that. thanks.

Hope my suggestion helps

Collation Conflict

I am trying to move my system from SQL Server 7.0 to SQL Server 2000 and I a
m
getting a "Cannot resolve collation conflict" on query which joins a table
and a view.
The relevant field in the table is defined thus:
[ST_ACCOUNT] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
and the linking field in the View is defined as
CONVERT(Char(8), regno) AS Account_No
Do I have to specifically declare a Collation type in the view. If so, how?
PeterYes you need to specify COLLATION
CREATE TABLE #t (col VARCHAR(10) COLLATE SQL_Latin1_General_CP1_CI_AS )
INSERT INTO #t VALUES ('a')
--different collation
CREATE TABLE #t1 (col VARCHAR(10) COLLATE SQL_Latin1_General_CP1255_CI_AS)
INSERT INTO #t1 VALUES ('b')
select * from #t1 join #t on
#t.col=#t1.col
--Server: Msg 446, Level 16, State 9, Line 1
--Cannot resolve collation conflict for equal to operation
select * from #t1 join #t on
#t.col=#t1.col COLLATE SQL_Latin1_General_CP1_CI_AS
--No error
"Petet Tickler" <PetetTickler@.discussions.microsoft.com> wrote in message
news:D1019634-175A-45F2-B012-3B3787D001B7@.microsoft.com...
>I am trying to move my system from SQL Server 7.0 to SQL Server 2000 and I
>am
> getting a "Cannot resolve collation conflict" on query which joins a table
> and a view.
> The relevant field in the table is defined thus:
> [ST_ACCOUNT] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> and the linking field in the View is defined as
> CONVERT(Char(8), regno) AS Account_No
> Do I have to specifically declare a Collation type in the view. If so,
> how?
> Peter
>

Collation Conflict

Hi,
I am running a query over 2 tables in 2 different databases.
I get the following error "Cannot resolve collation conflict for equal to
operation"
for example
SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[dbo].[TB1] [TB1]
INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=[TB2].[ProductCode])
WHERE [TB2].[ProdGroup]=@.PG
@.PG is a string parameter.
Regards
Tim
Your TEMPDB collation differs to your database,
You either need to preform Julie option or do a rebuildm to the correct
collation but this would wipe out your users, and user databases (you can
reattached).
J
"Tim Marsden" <TM@.UK.COM> wrote in message
news:e0iKaZjQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I am running a query over 2 tables in 2 different databases.
> I get the following error "Cannot resolve collation conflict for equal to
> operation"
> for example
> SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[dbo].[TB1] [TB1]
> INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=[TB2].[ProductCode])
> WHERE [TB2].[ProdGroup]=@.PG
> @.PG is a string parameter.
> Regards
> Tim
>
sqlsql

Collation Conflict

Hi,
I am running a query over 2 tables in 2 different databases.
I get the following error "Cannot resolve collation conflict for equal to
operation"
for example
SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[dbo].[TB1] [TB1]
INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=[TB2].[ProductCode])
WHERE [TB2].[ProdGroup]=@.PG
@.PG is a string parameter.
Regards
TimModify your query so that it converts your joins to
unicode data. This will make it collation independant.
PS Do you want to know why it went wrong or are you ok
with it ?
J
>--Original Message--
>Hi,
>I am running a query over 2 tables in 2 different
databases.
>I get the following error "Cannot resolve collation
conflict for equal to
>operation"
>for example
>SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].
[dbo].[TB1] [TB1]
>INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=[TB2].[ProductCode])
>WHERE [TB2].[ProdGroup]=@.PG
>@.PG is a string parameter.
>Regards
>Tim
>
>.
>|||Your TEMPDB collation differs to your database,
You either need to preform Julie option or do a rebuildm to the correct
collation but this would wipe out your users, and user databases (you can
reattached).
J
"Tim Marsden" <TM@.UK.COM> wrote in message
news:e0iKaZjQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I am running a query over 2 tables in 2 different databases.
> I get the following error "Cannot resolve collation conflict for equal to
> operation"
> for example
> SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[dbo].[TB1] [TB1]
> INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=[TB2].[ProductCode])
> WHERE [TB2].[ProdGroup]=@.PG
> @.PG is a string parameter.
> Regards
> Tim
>|||Many Thanks
Please could you explain why it when wrong, and give me an example of
unicodes joins.
Regards
Tim
"Julie" <anonymous@.discussions.microsoft.com> wrote in message
news:11c6101c4423b$568580b0$a301280a@.phx.gbl...
> Modify your query so that it converts your joins to
> unicode data. This will make it collation independant.
> PS Do you want to know why it went wrong or are you ok
> with it ?
> J
>
> >--Original Message--
> >Hi,
> >
> >I am running a query over 2 tables in 2 different
> databases.
> >I get the following error "Cannot resolve collation
> conflict for equal to
> >operation"
> >
> >for example
> >
> >SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].
> [dbo].[TB1] [TB1]
> >INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=> [TB2].[ProductCode])
> >WHERE [TB2].[ProdGroup]=@.PG
> >
> >@.PG is a string parameter.
> >
> >Regards
> >Tim
> >
> >
> >.
> >|||Your [TB1].[Product] and [TB2].[ProductCode] columns have different
collations, so the result of the join expression is ambiguous. Take a
look at the BOL topic "Collation Precedence" -- it provides a good
explanation of the problem. You can avoid this fairly trivially by
providing a COLLATE clause that removes the ambiguity like this:
SELECT TOP 100 [TB1].[Product] AS Q0000000
FROM ( [BD1].[dbo].[TB1] [TB1]
INNER JOIN [DB2].[dbo].[TB2] [TB2]
ON [TB1].[Product]=[TB2].[ProductCode]) COLLATE database_default
WHERE [TB2].[ProdGroup]=@.PG
but this will make it impossible for the QP to use an index seek on the
right side of the join. If this is a big problem it may be better to
change the collation of one of the two columns (using ALTER TABLE ALTER
COLUMN) so that the collations match. Note that to run ALTER COLUMN on a
column's collation you must first drop any indexes, stats, or constraints
that reference the column.
Bart
--
Bart Duncan
Microsoft SQL Server Support
Please reply to the newsgroup only - thanks.
This posting is provided "AS IS" with no warranties, and confers no
rights.
From: "Tim Marsden" <TM@.UK.COM>
References: <e0iKaZjQEHA.132@.TK2MSFTNGP09.phx.gbl>
<11c6101c4423b$568580b0$a301280a@.phx.gbl>
Subject: Re: Collation Conflict
Date: Tue, 25 May 2004 14:49:31 +0100
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <OC3oY8lQEHA.3988@.tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.sqlserver.server
NNTP-Posting-Host: host213-122-182-242.in-addr.btopenworld.com
213.122.182.242
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp
13.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.sqlserver.server:342917
X-Tomcat-NG: microsoft.public.sqlserver.server
Many Thanks
Please could you explain why it when wrong, and give me an example of
unicodes joins.
Regards
Tim
"Julie" <anonymous@.discussions.microsoft.com> wrote in message
news:11c6101c4423b$568580b0$a301280a@.phx.gbl...
> Modify your query so that it converts your joins to
> unicode data. This will make it collation independant.
> PS Do you want to know why it went wrong or are you ok
> with it ?
> J
>
> >--Original Message--
> >Hi,
> >
> >I am running a query over 2 tables in 2 different
> databases.
> >I get the following error "Cannot resolve collation
> conflict for equal to
> >operation"
> >
> >for example
> >
> >SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].
> [dbo].[TB1] [TB1]
> >INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product]=> [TB2].[ProductCode])
> >WHERE [TB2].[ProdGroup]=@.PG
> >
> >@.PG is a string parameter.
> >
> >Regards
> >Tim
> >
> >
> >.
> >

Collation Conflict

Hi,
I am running a query over 2 tables in 2 different databases.
I get the following error "Cannot resolve collation conflict for equal to
operation"
for example
SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[dbo
].[TB1] [TB1]
INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Product
]=[TB2].[ProductCode])
WHERE [TB2].[ProdGroup]=@.PG
@.PG is a string parameter.
Regards
TimYour TEMPDB collation differs to your database,
You either need to preform Julie option or do a rebuildm to the correct
collation but this would wipe out your users, and user databases (you can
reattached).
J
"Tim Marsden" <TM@.UK.COM> wrote in message
news:e0iKaZjQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hi,
> I am running a query over 2 tables in 2 different databases.
> I get the following error "Cannot resolve collation conflict for equal to
> operation"
> for example
> SELECT TOP 100 [TB1].[Product] AS Q0000000 FROM ( [BD1].[d
bo].[TB1] [TB1]
> INNER JOIN [DB2].[dbo].[TB2] [TB2] ON [TB1].[Produ
ct]=[TB2].[ProductCode])
> WHERE [TB2].[ProdGroup]=@.PG
> @.PG is a string parameter.
> Regards
> Tim
>

Tuesday, March 20, 2012

collation

Hi,
I have built a server based on a db's collation that I want to load, however
I still receive the 'cannot resolve collation conflict for equal to
operation'.
I have checked the collations of the loaded against the tempdb.
loaded db:
SQL_Latin1_General_CP1_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
Data
tempdb:
Latin1_General_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
I would have thought the above would have been ok?
Does this mean a rebuild of master db to map collation to db?
Thanks.Hi sysbox27,
Definitly not the same! You can:
1. Rebuild you master database to have the same collation as your user
database.
OR
1.Change your user database collation to match the server collation by A)
Using DTS or Alter database, Alter table/alter column (the Alter table/alter
column has many restrictions). The following article describes how the above
can be done:
Article title: How to transfer a database from one collation to another
collation in SQL Server
Article Link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
Sasan Saidi
Senior DBA
"sysbox27" wrote:
> Hi,
> I have built a server based on a db's collation that I want to load, however
> I still receive the 'cannot resolve collation conflict for equal to
> operation'.
> I have checked the collations of the loaded against the tempdb.
> loaded db:
> SQL_Latin1_General_CP1_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> Data
> tempdb:
> Latin1_General_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> I would have thought the above would have been ok?
> Does this mean a rebuild of master db to map collation to db?
> Thanks.|||Hi Sasan,
firstly let me say thanks for the assistance - much appreciated.
in my case I'm quite happy to rebuild server, but my problem is that I don't
see the collation below listed when it comes time to setup:
> > SQL_Latin1_General_CP1_CI_AS
> > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > width-insensitive
> > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > Data
so how do I get this collation set?
thanks again.
"Sasan Saidi" wrote:
> Hi sysbox27,
> Definitly not the same! You can:
> 1. Rebuild you master database to have the same collation as your user
> database.
> OR
> 1.Change your user database collation to match the server collation by A)
> Using DTS or Alter database, Alter table/alter column (the Alter table/alter
> column has many restrictions). The following article describes how the above
> can be done:
> Article title: How to transfer a database from one collation to another
> collation in SQL Server
> Article Link:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
> Sasan Saidi
> Senior DBA
> "sysbox27" wrote:
> > Hi,
> > I have built a server based on a db's collation that I want to load, however
> > I still receive the 'cannot resolve collation conflict for equal to
> > operation'.
> >
> > I have checked the collations of the loaded against the tempdb.
> > loaded db:
> > SQL_Latin1_General_CP1_CI_AS
> > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > width-insensitive
> > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > Data
> >
> > tempdb:
> > Latin1_General_CI_AS
> > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > width-insensitive
> >
> > I would have thought the above would have been ok?
> >
> > Does this mean a rebuild of master db to map collation to db?
> >
> > Thanks.|||If you run the following to see the list of all the collations supported by
Microsoft® SQL Server� 2000:
SELECT * FROM ::fn_helpcollations()
you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
Sasan
"sysbox27" wrote:
> Hi Sasan,
> firstly let me say thanks for the assistance - much appreciated.
> in my case I'm quite happy to rebuild server, but my problem is that I don't
> see the collation below listed when it comes time to setup:
> > > SQL_Latin1_General_CP1_CI_AS
> > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > width-insensitive
> > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > > Data
> so how do I get this collation set?
> thanks again.
>
>
>
> "Sasan Saidi" wrote:
> > Hi sysbox27,
> >
> > Definitly not the same! You can:
> > 1. Rebuild you master database to have the same collation as your user
> > database.
> > OR
> > 1.Change your user database collation to match the server collation by A)
> > Using DTS or Alter database, Alter table/alter column (the Alter table/alter
> > column has many restrictions). The following article describes how the above
> > can be done:
> >
> > Article title: How to transfer a database from one collation to another
> > collation in SQL Server
> > Article Link:
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
> >
> > Sasan Saidi
> > Senior DBA
> >
> > "sysbox27" wrote:
> >
> > > Hi,
> > > I have built a server based on a db's collation that I want to load, however
> > > I still receive the 'cannot resolve collation conflict for equal to
> > > operation'.
> > >
> > > I have checked the collations of the loaded against the tempdb.
> > > loaded db:
> > > SQL_Latin1_General_CP1_CI_AS
> > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > width-insensitive
> > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > > Data
> > >
> > > tempdb:
> > > Latin1_General_CI_AS
> > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > width-insensitive
> > >
> > > I would have thought the above would have been ok?
> > >
> > > Does this mean a rebuild of master db to map collation to db?
> > >
> > > Thanks.|||Sasan,
right I see it in the list, but when I create a new server instance I don't
see that collation listed. how do I now go about changing the collation to
what I want or even building a new server with the collation mentioned below?
many thanks.
"Sasan Saidi" wrote:
> If you run the following to see the list of all the collations supported by
> Microsoft® SQL Server� 2000:
> SELECT * FROM ::fn_helpcollations()
> you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
> Sasan
> "sysbox27" wrote:
> > Hi Sasan,
> > firstly let me say thanks for the assistance - much appreciated.
> > in my case I'm quite happy to rebuild server, but my problem is that I don't
> > see the collation below listed when it comes time to setup:
> >
> > > > SQL_Latin1_General_CP1_CI_AS
> > > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > > width-insensitive
> > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > > > Data
> >
> > so how do I get this collation set?
> >
> > thanks again.
> >
> >
> >
> >
> >
> >
> >
> > "Sasan Saidi" wrote:
> >
> > > Hi sysbox27,
> > >
> > > Definitly not the same! You can:
> > > 1. Rebuild you master database to have the same collation as your user
> > > database.
> > > OR
> > > 1.Change your user database collation to match the server collation by A)
> > > Using DTS or Alter database, Alter table/alter column (the Alter table/alter
> > > column has many restrictions). The following article describes how the above
> > > can be done:
> > >
> > > Article title: How to transfer a database from one collation to another
> > > collation in SQL Server
> > > Article Link:
> > > http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
> > >
> > > Sasan Saidi
> > > Senior DBA
> > >
> > > "sysbox27" wrote:
> > >
> > > > Hi,
> > > > I have built a server based on a db's collation that I want to load, however
> > > > I still receive the 'cannot resolve collation conflict for equal to
> > > > operation'.
> > > >
> > > > I have checked the collations of the loaded against the tempdb.
> > > > loaded db:
> > > > SQL_Latin1_General_CP1_CI_AS
> > > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > > width-insensitive
> > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> > > > Data
> > > >
> > > > tempdb:
> > > > Latin1_General_CI_AS
> > > > Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> > > > width-insensitive
> > > >
> > > > I would have thought the above would have been ok?
> > > >
> > > > Does this mean a rebuild of master db to map collation to db?
> > > >
> > > > Thanks.|||sysbox27,
Do a custom setup to see the collation dialog. On this dialog you'll want
to select the "SQL Collations" radio button (the other will be "Windows
Collations"). This will enable a drop down listbox at the bottom of the
form. In this listbox you should select "Dictionary order case insensitive
for use with the 1252 character set". On a U.S. English system this is the
default SQL collation, so you may not need to hunt for it in the list.
HTH,
Bart
--
Bart Duncan
Microsoft SQL Server Support
Please reply to the newsgroup only - thanks.
This posting is provided "AS IS" with no warranties, and confers no rights.
| Thread-Topic: collation
| thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==| X-WBNR-Posting-Host: 82.35.233.73
| From: "=?Utf-8?B?c3lzYm94Mjc=?=" <sysbox27@.discussions.microsoft.com>
| References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
<1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
<11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
<BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
| Subject: RE: collation
| Date: Mon, 21 Feb 2005 14:47:06 -0800
| Lines: 85
| Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.server
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
| X-Tomcat-NG: microsoft.public.sqlserver.server
|
| Sasan,
| right I see it in the list, but when I create a new server instance I
don't
| see that collation listed. how do I now go about changing the collation
to
| what I want or even building a new server with the collation mentioned
below?
| many thanks.
|
| "Sasan Saidi" wrote:
|
| > If you run the following to see the list of all the collations
supported by
| > Microsoft® SQL Server� 2000:
| >
| > SELECT * FROM ::fn_helpcollations()
| >
| > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
| >
| > Sasan
| > "sysbox27" wrote:
| >
| > > Hi Sasan,
| > > firstly let me say thanks for the assistance - much appreciated.
| > > in my case I'm quite happy to rebuild server, but my problem is that
I don't
| > > see the collation below listed when it comes time to setup:
| > >
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > >
| > > so how do I get this collation set?
| > >
| > > thanks again.
| > >
| > >
| > >
| > >
| > >
| > >
| > >
| > > "Sasan Saidi" wrote:
| > >
| > > > Hi sysbox27,
| > > >
| > > > Definitly not the same! You can:
| > > > 1. Rebuild you master database to have the same collation as your
user
| > > > database.
| > > > OR
| > > > 1.Change your user database collation to match the server collation
by A)
| > > > Using DTS or Alter database, Alter table/alter column (the Alter
table/alter
| > > > column has many restrictions). The following article describes how
the above
| > > > can be done:
| > > >
| > > > Article title: How to transfer a database from one collation to
another
| > > > collation in SQL Server
| > > > Article Link:
| > > >
http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
| > > >
| > > > Sasan Saidi
| > > > Senior DBA
| > > >
| > > > "sysbox27" wrote:
| > > >
| > > > > Hi,
| > > > > I have built a server based on a db's collation that I want to
load, however
| > > > > I still receive the 'cannot resolve collation conflict for equal
to
| > > > > operation'.
| > > > >
| > > > > I have checked the collations of the loaded against the tempdb.
| > > > > loaded db:
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > > > >
| > > > > tempdb:
| > > > > Latin1_General_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > >
| > > > > I would have thought the above would have been ok?
| > > > >
| > > > > Does this mean a rebuild of master db to map collation to db?
| > > > >
| > > > > Thanks.
||||Thank you Bart & Sasan for your help.
Regards.
"Bart Duncan [MSFT]" wrote:
> sysbox27,
> Do a custom setup to see the collation dialog. On this dialog you'll want
> to select the "SQL Collations" radio button (the other will be "Windows
> Collations"). This will enable a drop down listbox at the bottom of the
> form. In this listbox you should select "Dictionary order case insensitive
> for use with the 1252 character set". On a U.S. English system this is the
> default SQL collation, so you may not need to hunt for it in the list.
> HTH,
> Bart
> --
> Bart Duncan
> Microsoft SQL Server Support
> Please reply to the newsgroup only - thanks.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --
> | Thread-Topic: collation
> | thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==> | X-WBNR-Posting-Host: 82.35.233.73
> | From: "=?Utf-8?B?c3lzYm94Mjc=?=" <sysbox27@.discussions.microsoft.com>
> | References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
> <1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
> <11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
> <BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
> | Subject: RE: collation
> | Date: Mon, 21 Feb 2005 14:47:06 -0800
> | Lines: 85
> | Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 8bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.server
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
> | X-Tomcat-NG: microsoft.public.sqlserver.server
> |
> | Sasan,
> | right I see it in the list, but when I create a new server instance I
> don't
> | see that collation listed. how do I now go about changing the collation
> to
> | what I want or even building a new server with the collation mentioned
> below?
> | many thanks.
> |
> | "Sasan Saidi" wrote:
> |
> | > If you run the following to see the list of all the collations
> supported by
> | > MicrosoftÃ?® SQL Serverââ'¢ 2000:
> | >
> | > SELECT * FROM ::fn_helpcollations()
> | >
> | > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
> | >
> | > Sasan
> | > "sysbox27" wrote:
> | >
> | > > Hi Sasan,
> | > > firstly let me say thanks for the assistance - much appreciated.
> | > > in my case I'm quite happy to rebuild server, but my problem is that
> I don't
> | > > see the collation below listed when it comes time to setup:
> | > >
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > >
> | > > so how do I get this collation set?
> | > >
> | > > thanks again.
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > > "Sasan Saidi" wrote:
> | > >
> | > > > Hi sysbox27,
> | > > >
> | > > > Definitly not the same! You can:
> | > > > 1. Rebuild you master database to have the same collation as your
> user
> | > > > database.
> | > > > OR
> | > > > 1.Change your user database collation to match the server collation
> by A)
> | > > > Using DTS or Alter database, Alter table/alter column (the Alter
> table/alter
> | > > > column has many restrictions). The following article describes how
> the above
> | > > > can be done:
> | > > >
> | > > > Article title: How to transfer a database from one collation to
> another
> | > > > collation in SQL Server
> | > > > Article Link:
> | > > >
> http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k
> | > > >
> | > > > Sasan Saidi
> | > > > Senior DBA
> | > > >
> | > > > "sysbox27" wrote:
> | > > >
> | > > > > Hi,
> | > > > > I have built a server based on a db's collation that I want to
> load, however
> | > > > > I still receive the 'cannot resolve collation conflict for equal
> to
> | > > > > operation'.
> | > > > >
> | > > > > I have checked the collations of the loaded against the tempdb.
> | > > > > loaded db:
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > > > >
> | > > > > tempdb:
> | > > > > Latin1_General_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > >
> | > > > > I would have thought the above would have been ok?
> | > > > >
> | > > > > Does this mean a rebuild of master db to map collation to db?
> | > > > >
> | > > > > Thanks.
> |
>

collation

Hi,
I have built a server based on a db's collation that I want to load, however
I still receive the 'cannot resolve collation conflict for equal to
operation'.
I have checked the collations of the loaded against the tempdb.
loaded db:
SQL_Latin1_General_CP1_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
Data
tempdb:
Latin1_General_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
I would have thought the above would have been ok?
Does this mean a rebuild of master db to map collation to db?
Thanks.
Hi sysbox27,
Definitly not the same! You can:
1. Rebuild you master database to have the same collation as your user
database.
OR
1.Change your user database collation to match the server collation by A)
Using DTS or Alter database, Alter table/alter column (the Alter table/alter
column has many restrictions). The following article describes how the above
can be done:
Article title: How to transfer a database from one collation to another
collation in SQL Server
Article Link:
http://support.microsoft.com/default...&Product=sql2k
Sasan Saidi
Senior DBA
"sysbox27" wrote:

> Hi,
> I have built a server based on a db's collation that I want to load, however
> I still receive the 'cannot resolve collation conflict for equal to
> operation'.
> I have checked the collations of the loaded against the tempdb.
> loaded db:
> SQL_Latin1_General_CP1_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
> Data
> tempdb:
> Latin1_General_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> I would have thought the above would have been ok?
> Does this mean a rebuild of master db to map collation to db?
> Thanks.
|||Hi Sasan,
firstly let me say thanks for the assistance - much appreciated.
in my case I'm quite happy to rebuild server, but my problem is that I don't
see the collation below listed when it comes time to setup:
[vbcol=seagreen]
so how do I get this collation set?
thanks again.
"Sasan Saidi" wrote:
[vbcol=seagreen]
> Hi sysbox27,
> Definitly not the same! You can:
> 1. Rebuild you master database to have the same collation as your user
> database.
> OR
> 1.Change your user database collation to match the server collation by A)
> Using DTS or Alter database, Alter table/alter column (the Alter table/alter
> column has many restrictions). The following article describes how the above
> can be done:
> Article title: How to transfer a database from one collation to another
> collation in SQL Server
> Article Link:
> http://support.microsoft.com/default...&Product=sql2k
> Sasan Saidi
> Senior DBA
> "sysbox27" wrote:
|||If you run the following to see the list of all the collations supported by
Microsoft? SQL Server? 2000:
SELECT * FROM ::fn_helpcollations()
you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
Sasan
"sysbox27" wrote:
[vbcol=seagreen]
> Hi Sasan,
> firstly let me say thanks for the assistance - much appreciated.
> in my case I'm quite happy to rebuild server, but my problem is that I don't
> see the collation below listed when it comes time to setup:
>
> so how do I get this collation set?
> thanks again.
>
>
>
> "Sasan Saidi" wrote:
|||Sasan,
right I see it in the list, but when I create a new server instance I don't
see that collation listed. how do I now go about changing the collation to
what I want or even building a new server with the collation mentioned below?
many thanks.
"Sasan Saidi" wrote:
[vbcol=seagreen]
> If you run the following to see the list of all the collations supported by
> Microsoft? SQL Server? 2000:
> SELECT * FROM ::fn_helpcollations()
> you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
> Sasan
> "sysbox27" wrote:
|||sysbox27,
Do a custom setup to see the collation dialog. On this dialog you'll want
to select the "SQL Collations" radio button (the other will be "Windows
Collations"). This will enable a drop down listbox at the bottom of the
form. In this listbox you should select "Dictionary order case insensitive
for use with the 1252 character set". On a U.S. English system this is the
default SQL collation, so you may not need to hunt for it in the list.
HTH,
Bart
Bart Duncan
Microsoft SQL Server Support
Please reply to the newsgroup only - thanks.
This posting is provided "AS IS" with no warranties, and confers no rights.
| Thread-Topic: collation
| thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==
| X-WBNR-Posting-Host: 82.35.233.73
| From: "=?Utf-8?B?c3lzYm94Mjc=?=" <sysbox27@.discussions.microsoft.com>
| References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
<1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
<11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
<BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
| Subject: RE: collation
| Date: Mon, 21 Feb 2005 14:47:06 -0800
| Lines: 85
| Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.server
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
| X-Tomcat-NG: microsoft.public.sqlserver.server
|
| Sasan,
| right I see it in the list, but when I create a new server instance I
don't
| see that collation listed. how do I now go about changing the collation
to
| what I want or even building a new server with the collation mentioned
below?
| many thanks.
|
| "Sasan Saidi" wrote:
|
| > If you run the following to see the list of all the collations
supported by
| > Microsoft? SQL Server? 2000:
| >
| > SELECT * FROM ::fn_helpcollations()
| >
| > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
| >
| > Sasan
| > "sysbox27" wrote:
| >
| > > Hi Sasan,
| > > firstly let me say thanks for the assistance - much appreciated.
| > > in my case I'm quite happy to rebuild server, but my problem is that
I don't
| > > see the collation below listed when it comes time to setup:
| > >
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > >
| > > so how do I get this collation set?
| > >
| > > thanks again.
| > >
| > >
| > >
| > >
| > >
| > >
| > >
| > > "Sasan Saidi" wrote:
| > >
| > > > Hi sysbox27,
| > > >
| > > > Definitly not the same! You can:
| > > > 1. Rebuild you master database to have the same collation as your
user
| > > > database.
| > > > OR
| > > > 1.Change your user database collation to match the server collation
by A)
| > > > Using DTS or Alter database, Alter table/alter column (the Alter
table/alter
| > > > column has many restrictions). The following article describes how
the above
| > > > can be done:
| > > >
| > > > Article title: How to transfer a database from one collation to
another
| > > > collation in SQL Server
| > > > Article Link:
| > > >
http://support.microsoft.com/default...&Product=sql2k
| > > >
| > > > Sasan Saidi
| > > > Senior DBA
| > > >
| > > > "sysbox27" wrote:
| > > >
| > > > > Hi,
| > > > > I have built a server based on a db's collation that I want to
load, however
| > > > > I still receive the 'cannot resolve collation conflict for equal
to
| > > > > operation'.
| > > > >
| > > > > I have checked the collations of the loaded against the tempdb.
| > > > > loaded db:
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > > > >
| > > > > tempdb:
| > > > > Latin1_General_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > >
| > > > > I would have thought the above would have been ok?
| > > > >
| > > > > Does this mean a rebuild of master db to map collation to db?
| > > > >
| > > > > Thanks.
|
|||Thank you Bart & Sasan for your help.
Regards.
"Bart Duncan [MSFT]" wrote:

> sysbox27,
> Do a custom setup to see the collation dialog. On this dialog you'll want
> to select the "SQL Collations" radio button (the other will be "Windows
> Collations"). This will enable a drop down listbox at the bottom of the
> form. In this listbox you should select "Dictionary order case insensitive
> for use with the 1252 character set". On a U.S. English system this is the
> default SQL collation, so you may not need to hunt for it in the list.
> HTH,
> Bart
> --
> Bart Duncan
> Microsoft SQL Server Support
> Please reply to the newsgroup only - thanks.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --
> | Thread-Topic: collation
> | thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==
> | X-WBNR-Posting-Host: 82.35.233.73
> | From: "=?Utf-8?B?c3lzYm94Mjc=?=" <sysbox27@.discussions.microsoft.com>
> | References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
> <1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
> <11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
> <BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
> | Subject: RE: collation
> | Date: Mon, 21 Feb 2005 14:47:06 -0800
> | Lines: 85
> | Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 8bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.server
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
> | X-Tomcat-NG: microsoft.public.sqlserver.server
> |
> | Sasan,
> | right I see it in the list, but when I create a new server instance I
> don't
> | see that collation listed. how do I now go about changing the collation
> to
> | what I want or even building a new server with the collation mentioned
> below?
> | many thanks.
> |
> | "Sasan Saidi" wrote:
> |
> | > If you run the following to see the list of all the collations
> supported by
> | > Microsoft?? SQL Servera?¢ 2000:
> | >
> | > SELECT * FROM ::fn_helpcollations()
> | >
> | > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
> | >
> | > Sasan
> | > "sysbox27" wrote:
> | >
> | > > Hi Sasan,
> | > > firstly let me say thanks for the assistance - much appreciated.
> | > > in my case I'm quite happy to rebuild server, but my problem is that
> I don't
> | > > see the collation below listed when it comes time to setup:
> | > >
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > >
> | > > so how do I get this collation set?
> | > >
> | > > thanks again.
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > > "Sasan Saidi" wrote:
> | > >
> | > > > Hi sysbox27,
> | > > >
> | > > > Definitly not the same! You can:
> | > > > 1. Rebuild you master database to have the same collation as your
> user
> | > > > database.
> | > > > OR
> | > > > 1.Change your user database collation to match the server collation
> by A)
> | > > > Using DTS or Alter database, Alter table/alter column (the Alter
> table/alter
> | > > > column has many restrictions). The following article describes how
> the above
> | > > > can be done:
> | > > >
> | > > > Article title: How to transfer a database from one collation to
> another
> | > > > collation in SQL Server
> | > > > Article Link:
> | > > >
> http://support.microsoft.com/default...&Product=sql2k
> | > > >
> | > > > Sasan Saidi
> | > > > Senior DBA
> | > > >
> | > > > "sysbox27" wrote:
> | > > >
> | > > > > Hi,
> | > > > > I have built a server based on a db's collation that I want to
> load, however
> | > > > > I still receive the 'cannot resolve collation conflict for equal
> to
> | > > > > operation'.
> | > > > >
> | > > > > I have checked the collations of the loaded against the tempdb.
> | > > > > loaded db:
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > > > >
> | > > > > tempdb:
> | > > > > Latin1_General_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > >
> | > > > > I would have thought the above would have been ok?
> | > > > >
> | > > > > Does this mean a rebuild of master db to map collation to db?
> | > > > >
> | > > > > Thanks.
> |
>

collation

Hi,
I have built a server based on a db's collation that I want to load, however
I still receive the 'cannot resolve collation conflict for equal to
operation'.
I have checked the collations of the loaded against the tempdb.
loaded db:
SQL_Latin1_General_CP1_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unicode
Data
tempdb:
Latin1_General_CI_AS
Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
width-insensitive
I would have thought the above would have been ok?
Does this mean a rebuild of master db to map collation to db?
Thanks.Hi sysbox27,
Definitly not the same! You can:
1. Rebuild you master database to have the same collation as your user
database.
OR
1.Change your user database collation to match the server collation by A)
Using DTS or Alter database, Alter table/alter column (the Alter table/alter
column has many restrictions). The following article describes how the above
can be done:
Article title: How to transfer a database from one collation to another
collation in SQL Server
Article Link:
http://support.microsoft.com/defaul...5&Product=sql2k
Sasan Saidi
Senior DBA
"sysbox27" wrote:

> Hi,
> I have built a server based on a db's collation that I want to load, howev
er
> I still receive the 'cannot resolve collation conflict for equal to
> operation'.
> I have checked the collations of the loaded against the tempdb.
> loaded db:
> SQL_Latin1_General_CP1_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for non-Unico
de
> Data
> tempdb:
> Latin1_General_CI_AS
> Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive,
> width-insensitive
> I would have thought the above would have been ok?
> Does this mean a rebuild of master db to map collation to db?
> Thanks.|||Hi Sasan,
firstly let me say thanks for the assistance - much appreciated.
in my case I'm quite happy to rebuild server, but my problem is that I don't
see the collation below listed when it comes time to setup:
[vbcol=seagreen]
so how do I get this collation set?
thanks again.
"Sasan Saidi" wrote:
[vbcol=seagreen]
> Hi sysbox27,
> Definitly not the same! You can:
> 1. Rebuild you master database to have the same collation as your user
> database.
> OR
> 1.Change your user database collation to match the server collation by A)
> Using DTS or Alter database, Alter table/alter column (the Alter table/alt
er
> column has many restrictions). The following article describes how the abo
ve
> can be done:
> Article title: How to transfer a database from one collation to another
> collation in SQL Server
> Article Link:
> [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k[/ur
l]
> Sasan Saidi
> Senior DBA
> "sysbox27" wrote:
>|||If you run the following to see the list of all the collations supported by
Microsoft? SQL Server? 2000:
SELECT * FROM ::fn_helpcollations()
you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
Sasan
"sysbox27" wrote:
[vbcol=seagreen]
> Hi Sasan,
> firstly let me say thanks for the assistance - much appreciated.
> in my case I'm quite happy to rebuild server, but my problem is that I don
't
> see the collation below listed when it comes time to setup:
>
> so how do I get this collation set?
> thanks again.
>
>
>
> "Sasan Saidi" wrote:
>|||Sasan,
right I see it in the list, but when I create a new server instance I don't
see that collation listed. how do I now go about changing the collation to
what I want or even building a new server with the collation mentioned below
?
many thanks.
"Sasan Saidi" wrote:
[vbcol=seagreen]
> If you run the following to see the list of all the collations supported b
y
> Microsoft? SQL Server? 2000:
> SELECT * FROM ::fn_helpcollations()
> you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
> Sasan
> "sysbox27" wrote:
>|||sysbox27,
Do a custom setup to see the collation dialog. On this dialog you'll want
to select the "SQL Collations" radio button (the other will be "Windows
Collations"). This will enable a drop down listbox at the bottom of the
form. In this listbox you should select "Dictionary order case insensitive
for use with the 1252 character set". On a U.S. English system this is the
default SQL collation, so you may not need to hunt for it in the list.
HTH,
Bart
--
Bart Duncan
Microsoft SQL Server Support
Please reply to the newsgroup only - thanks.
This posting is provided "AS IS" with no warranties, and confers no rights.
| Thread-Topic: collation
| thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==
| X-WBNR-Posting-Host: 82.35.233.73
| From: "examnotes" <sysbox27@.discussions.microsoft.com>
| References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
<1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
<11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
<BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
| Subject: RE: collation
| Date: Mon, 21 Feb 2005 14:47:06 -0800
| Lines: 85
| Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.server
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
| X-Tomcat-NG: microsoft.public.sqlserver.server
|
| Sasan,
| right I see it in the list, but when I create a new server instance I
don't
| see that collation listed. how do I now go about changing the collation
to
| what I want or even building a new server with the collation mentioned
below?
| many thanks.
|
| "Sasan Saidi" wrote:
|
| > If you run the following to see the list of all the collations
supported by
| > Microsoft? SQL Server? 2000:
| >
| > SELECT * FROM ::fn_helpcollations()
| >
| > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 706!
| >
| > Sasan
| > "sysbox27" wrote:
| >
| > > Hi Sasan,
| > > firstly let me say thanks for the assistance - much appreciated.
| > > in my case I'm quite happy to rebuild server, but my problem is that
I don't
| > > see the collation below listed when it comes time to setup:
| > >
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > >
| > > so how do I get this collation set?
| > >
| > > thanks again.
| > >
| > >
| > >
| > >
| > >
| > >
| > >
| > > "Sasan Saidi" wrote:
| > >
| > > > Hi sysbox27,
| > > >
| > > > Definitly not the same! You can:
| > > > 1. Rebuild you master database to have the same collation as your
user
| > > > database.
| > > > OR
| > > > 1.Change your user database collation to match the server collation
by A)
| > > > Using DTS or Alter database, Alter table/alter column (the Alter
table/alter
| > > > column has many restrictions). The following article describes how
the above
| > > > can be done:
| > > >
| > > > Article title: How to transfer a database from one collation to
another
| > > > collation in SQL Server
| > > > Article Link:
| > > >
http://support.microsoft.com/defaul...5&Product=sql2k
| > > >
| > > > Sasan Saidi
| > > > Senior DBA
| > > >
| > > > "sysbox27" wrote:
| > > >
| > > > > Hi,
| > > > > I have built a server based on a db's collation that I want to
load, however
| > > > > I still receive the 'cannot resolve collation conflict for equal
to
| > > > > operation'.
| > > > >
| > > > > I have checked the collations of the loaded against the tempdb.
| > > > > loaded db:
| > > > > SQL_Latin1_General_CP1_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
non-Unicode
| > > > > Data
| > > > >
| > > > > tempdb:
| > > > > Latin1_General_CI_AS
| > > > > Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive,
| > > > > width-insensitive
| > > > >
| > > > > I would have thought the above would have been ok?
| > > > >
| > > > > Does this mean a rebuild of master db to map collation to db?
| > > > >
| > > > > Thanks.
||||Thank you Bart & Sasan for your help.
Regards.
"Bart Duncan [MSFT]" wrote:

> sysbox27,
> Do a custom setup to see the collation dialog. On this dialog you'll want
> to select the "SQL Collations" radio button (the other will be "Windows
> Collations"). This will enable a drop down listbox at the bottom of the
> form. In this listbox you should select "Dictionary order case insensitiv
e
> for use with the 1252 character set". On a U.S. English system this is th
e
> default SQL collation, so you may not need to hunt for it in the list.
> HTH,
> Bart
> --
> Bart Duncan
> Microsoft SQL Server Support
> Please reply to the newsgroup only - thanks.
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
> --
> | Thread-Topic: collation
> | thread-index: AcUYZ0SE2quK7560RG6lTeGqz6LsZg==
> | X-WBNR-Posting-Host: 82.35.233.73
> | From: "examnotes" <sysbox27@.discussions.microsoft.com>
> | References: <DBFB1E09-6BD0-4C1B-B012-1462AB8E7702@.microsoft.com>
> <1A456C86-B4B3-49EC-9A51-6D92834B27FB@.microsoft.com>
> <11CDF551-ED2B-436E-A3C2-29FCFC714607@.microsoft.com>
> <BED1A525-DD68-4664-9504-9D0C1C2A6AB9@.microsoft.com>
> | Subject: RE: collation
> | Date: Mon, 21 Feb 2005 14:47:06 -0800
> | Lines: 85
> | Message-ID: <5A7D9817-DC47-4C23-B4AF-CADBA218F707@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 8bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.server
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.server:378854
> | X-Tomcat-NG: microsoft.public.sqlserver.server
> |
> | Sasan,
> | right I see it in the list, but when I create a new server instance I
> don't
> | see that collation listed. how do I now go about changing the collation
> to
> | what I want or even building a new server with the collation mentioned
> below?
> | many thanks.
> |
> | "Sasan Saidi" wrote:
> |
> | > If you run the following to see the list of all the collations
> supported by
> | > Microsoft?? SQL Servera?¢ 2000:
> | >
> | > SELECT * FROM ::fn_helpcollations()
> | >
> | > you will see "SQL_Latin1_General_CP1_CI_AS". On my server it is row 70
6!
> | >
> | > Sasan
> | > "sysbox27" wrote:
> | >
> | > > Hi Sasan,
> | > > firstly let me say thanks for the assistance - much appreciated.
> | > > in my case I'm quite happy to rebuild server, but my problem is that
> I don't
> | > > see the collation below listed when it comes time to setup:
> | > >
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > >
> | > > so how do I get this collation set?
> | > >
> | > > thanks again.
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > >
> | > > "Sasan Saidi" wrote:
> | > >
> | > > > Hi sysbox27,
> | > > >
> | > > > Definitly not the same! You can:
> | > > > 1. Rebuild you master database to have the same collation as your
> user
> | > > > database.
> | > > > OR
> | > > > 1.Change your user database collation to match the server collatio
n
> by A)
> | > > > Using DTS or Alter database, Alter table/alter column (the Alter
> table/alter
> | > > > column has many restrictions). The following article describes how
> the above
> | > > > can be done:
> | > > >
> | > > > Article title: How to transfer a database from one collation to
> another
> | > > > collation in SQL Server
> | > > > Article Link:
> | > > >
> [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;325335&Product=sql2k[/ur
l]
> | > > >
> | > > > Sasan Saidi
> | > > > Senior DBA
> | > > >
> | > > > "sysbox27" wrote:
> | > > >
> | > > > > Hi,
> | > > > > I have built a server based on a db's collation that I want to
> load, however
> | > > > > I still receive the 'cannot resolve collation conflict for equa
l
> to
> | > > > > operation'.
> | > > > >
> | > > > > I have checked the collations of the loaded against the tempdb.
> | > > > > loaded db:
> | > > > > SQL_Latin1_General_CP1_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > > for Unicode Data, SQL Server Sort Order 52 on Code Page 1252 for
> non-Unicode
> | > > > > Data
> | > > > >
> | > > > > tempdb:
> | > > > > Latin1_General_CI_AS
> | > > > > Latin1-General, case-insensitive, accent-sensitive,
> kanatype-insensitive,
> | > > > > width-insensitive
> | > > > >
> | > > > > I would have thought the above would have been ok?
> | > > > >
> | > > > > Does this mean a rebuild of master db to map collation to db?
> | > > > >
> | > > > > Thanks.
> |
>

Monday, March 19, 2012

COLLATE problem

Why do i get the error below:
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
What should i do?
INSERT INTO tkl_proposals(
proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
front_page_tr, front_page_en, notes, owner_company_id, status,
proposal_date, transfer_date, from_server)
SELECT
proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
front_page_tr, front_page_en, notes, owner_company_id, status,
proposal_date, getdate(), 'KIRMIZI'
FROM MD_F.MidasLocal.dbo.tkl_proposals b
WHERE
(NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
b.proposal_id=a.proposal_id AND
b.oc_initial=a.oc_initial AND
b.oc_place=a.oc_place)
)
AND b.oc_initial='MD'
AND b.oc_place='F'
AND b.proposal_date >= '1-1-2005'
Zulu
You join two tables on varchar columns which have a different collation.
Table1.LastName=Table2.surname COLLATE HEBREW_CI_AS (Change it for your
needs)
That means Table2 has not the same collation as Table1 and by using above
hints I define to use this praticular collation.
"zulu" <zkendir@.simternet.com> wrote in message
news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
> Why do i get the error below:
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> What should i do?
>
>
> INSERT INTO tkl_proposals(
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, transfer_date, from_server)
> SELECT
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, getdate(), 'KIRMIZI'
> FROM MD_F.MidasLocal.dbo.tkl_proposals b
> WHERE
> (NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
> b.proposal_id=a.proposal_id AND
> b.oc_initial=a.oc_initial AND
> b.oc_place=a.oc_place)
> )
> AND b.oc_initial='MD'
> AND b.oc_place='F'
> AND b.proposal_date >= '1-1-2005'
>
|||> What should i do?
It's a good practice to provide DDL (CREATE TABLE statements) so that we
can better help you.
This error may be due do different collations on the joined columns. You
can explicitly specify the desired collation using a COLLATE clause in your
query. See the Bools Online for more information.
Hope this helps.
Dan Guzman
SQL Server MVP
"zulu" <zkendir@.simternet.com> wrote in message
news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
> Why do i get the error below:
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> What should i do?
>
>
> INSERT INTO tkl_proposals(
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, transfer_date, from_server)
> SELECT
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, getdate(), 'KIRMIZI'
> FROM MD_F.MidasLocal.dbo.tkl_proposals b
> WHERE
> (NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
> b.proposal_id=a.proposal_id AND
> b.oc_initial=a.oc_initial AND
> b.oc_place=a.oc_place)
> )
> AND b.oc_initial='MD'
> AND b.oc_place='F'
> AND b.proposal_date >= '1-1-2005'
>
|||ok, got it, thank you
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:O$CfLGfCFHA.4052@.TK2MSFTNGP15.phx.gbl...
> Zulu
> You join two tables on varchar columns which have a different collation.
> Table1.LastName=Table2.surname COLLATE HEBREW_CI_AS (Change it for your
> needs)
> That means Table2 has not the same collation as Table1 and by using above
> hints I define to use this praticular collation.
>
> "zulu" <zkendir@.simternet.com> wrote in message
> news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
>

COLLATE problem

Why do i get the error below:
Server: Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation.
What should i do?
INSERT INTO tkl_proposals(
proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
front_page_tr, front_page_en, notes, owner_company_id, status,
proposal_date, transfer_date, from_server)
SELECT
proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
front_page_tr, front_page_en, notes, owner_company_id, status,
proposal_date, getdate(), 'KIRMIZI'
FROM MD_F.MidasLocal.dbo.tkl_proposals b
WHERE
(NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
b.proposal_id=a.proposal_id AND
b.oc_initial=a.oc_initial AND
b.oc_place=a.oc_place)
)
AND b.oc_initial='MD'
AND b.oc_place='F'
AND b.proposal_date >= '1-1-2005'Zulu
You join two tables on varchar columns which have a different collation.
Table1.LastName=Table2.surname COLLATE HEBREW_CI_AS (Change it for your
needs)
That means Table2 has not the same collation as Table1 and by using above
hints I define to use this praticular collation.
"zulu" <zkendir@.simternet.com> wrote in message
news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
> Why do i get the error below:
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> What should i do?
>
>
> INSERT INTO tkl_proposals(
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, transfer_date, from_server)
> SELECT
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, getdate(), 'KIRMIZI'
> FROM MD_F.MidasLocal.dbo.tkl_proposals b
> WHERE
> (NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
> b.proposal_id=a.proposal_id AND
> b.oc_initial=a.oc_initial AND
> b.oc_place=a.oc_place)
> )
> AND b.oc_initial='MD'
> AND b.oc_place='F'
> AND b.proposal_date >= '1-1-2005'
>|||> What should i do?
It's a good practice to provide DDL (CREATE TABLE statements) so that we
can better help you.
This error may be due do different collations on the joined columns. You
can explicitly specify the desired collation using a COLLATE clause in your
query. See the Bools Online for more information.
Hope this helps.
Dan Guzman
SQL Server MVP
"zulu" <zkendir@.simternet.com> wrote in message
news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
> Why do i get the error below:
> Server: Msg 446, Level 16, State 9, Line 1
> Cannot resolve collation conflict for equal to operation.
> What should i do?
>
>
> INSERT INTO tkl_proposals(
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, transfer_date, from_server)
> SELECT
> proposal_id, username, oc_group, oc_place, oc_initial, owner_name,
> front_page_tr, front_page_en, notes, owner_company_id, status,
> proposal_date, getdate(), 'KIRMIZI'
> FROM MD_F.MidasLocal.dbo.tkl_proposals b
> WHERE
> (NOT EXISTS (SELECT NULL FROM tkl_proposals a WHERE
> b.proposal_id=a.proposal_id AND
> b.oc_initial=a.oc_initial AND
> b.oc_place=a.oc_place)
> )
> AND b.oc_initial='MD'
> AND b.oc_place='F'
> AND b.proposal_date >= '1-1-2005'
>|||ok, got it, thank you
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:O$CfLGfCFHA.4052@.TK2MSFTNGP15.phx.gbl...
> Zulu
> You join two tables on varchar columns which have a different collation.
> Table1.LastName=Table2.surname COLLATE HEBREW_CI_AS (Change it for your
> needs)
> That means Table2 has not the same collation as Table1 and by using above
> hints I define to use this praticular collation.
>
> "zulu" <zkendir@.simternet.com> wrote in message
> news:O2ZXLyeCFHA.2876@.TK2MSFTNGP12.phx.gbl...
>