<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 Collation Explanation and Translation</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: nidz</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-175048</link>
		<dc:creator><![CDATA[nidz]]></dc:creator>
		<pubDate>Tue, 04 Oct 2011 13:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-175048</guid>
		<description><![CDATA[Hi Pinal,

I need information about inner join and outer join script . Is it same as inner join and outer join ? 

thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I need information about inner join and outer join script . Is it same as inner join and outer join ? </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 3 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-145411</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 3 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Sun, 03 Jul 2011 01:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-145411</guid>
		<description><![CDATA[[...] Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence with options for specifying case sensitivity, accent marks, Kana character types, and character width. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence with options for specifying case sensitivity, accent marks, Kana character types, and character width. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-132887</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 04 May 2011 14:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-132887</guid>
		<description><![CDATA[Search for indic collations]]></description>
		<content:encoded><![CDATA[<p>Search for indic collations</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikhilesh</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-132857</link>
		<dc:creator><![CDATA[nikhilesh]]></dc:creator>
		<pubDate>Wed, 04 May 2011 12:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-132857</guid>
		<description><![CDATA[hello dave,
i want to store hindi data in the database but there is no such collation for any indian languages 
please give a solution for it]]></description>
		<content:encoded><![CDATA[<p>hello dave,<br />
i want to store hindi data in the database but there is no such collation for any indian languages<br />
please give a solution for it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-111718</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 18 Jan 2011 15:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-111718</guid>
		<description><![CDATA[Use nvarchar datatype to store the data]]></description>
		<content:encoded><![CDATA[<p>Use nvarchar datatype to store the data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarun Dutta</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-111619</link>
		<dc:creator><![CDATA[Tarun Dutta]]></dc:creator>
		<pubDate>Tue, 18 Jan 2011 11:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-111619</guid>
		<description><![CDATA[sir i have a problem in SQLServer2005 i want to save Hindi Text like  in Database and also wants to retrieve hindi text but it will shows me like please help me]]></description>
		<content:encoded><![CDATA[<p>sir i have a problem in SQLServer2005 i want to save Hindi Text like  in Database and also wants to retrieve hindi text but it will shows me like please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphy Chiramel</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-85762</link>
		<dc:creator><![CDATA[Raphy Chiramel]]></dc:creator>
		<pubDate>Tue, 31 Aug 2010 09:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-85762</guid>
		<description><![CDATA[its Just an example...
what is your filtering condition that you can add....

update table3 
set QUANTITY = (select QUANTITY from table1 where id  = 3) - 
             (select QUANTITY from table2 where id  = 3)
where id = 3]]></description>
		<content:encoded><![CDATA[<p>its Just an example&#8230;<br />
what is your filtering condition that you can add&#8230;.</p>
<p>update table3<br />
set QUANTITY = (select QUANTITY from table1 where id  = 3) &#8211;<br />
             (select QUANTITY from table2 where id  = 3)<br />
where id = 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SAMITH</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-75174</link>
		<dc:creator><![CDATA[SAMITH]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 11:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-75174</guid>
		<description><![CDATA[Hi pinal,
Normaly data will be stored as case insensitive  in sql server 2008.but for password validation it will give problem right?is there any suggestion for comparision purpose?]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,<br />
Normaly data will be stored as case insensitive  in sql server 2008.but for password validation it will give problem right?is there any suggestion for comparision purpose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeJYWood</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-65126</link>
		<dc:creator><![CDATA[MikeJYWood]]></dc:creator>
		<pubDate>Tue, 13 Apr 2010 18:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-65126</guid>
		<description><![CDATA[Pinal,

I am currently working with a set of database done in unicode and with nvarchar fields. I have recently been required to bring in foreign language data (including Japanese, Chinese, etc) that are in varchar fields. Now I need to join and compare the nvarchar fields to the new varchar fields.

I know that there is a implicit conversion between nvarchar and varchar when joining them together, but in my case the varcahr data was simply not encoded properly and, hence, does not match up with the better nvarchar data.

How can I cast, convert, collate a the fields to get the nvarchar field to correctly match with the varchar field? Is this possible? Assuming I know the codepage for the data can I upgrage a varchar field into nvarchar? Or downgrade the nvarchar field into a varchar?

Thanks for the help,
Mike]]></description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>I am currently working with a set of database done in unicode and with nvarchar fields. I have recently been required to bring in foreign language data (including Japanese, Chinese, etc) that are in varchar fields. Now I need to join and compare the nvarchar fields to the new varchar fields.</p>
<p>I know that there is a implicit conversion between nvarchar and varchar when joining them together, but in my case the varcahr data was simply not encoded properly and, hence, does not match up with the better nvarchar data.</p>
<p>How can I cast, convert, collate a the fields to get the nvarchar field to correctly match with the varchar field? Is this possible? Assuming I know the codepage for the data can I upgrage a varchar field into nvarchar? Or downgrade the nvarchar field into a varchar?</p>
<p>Thanks for the help,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishan kumar</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59882</link>
		<dc:creator><![CDATA[krishan kumar]]></dc:creator>
		<pubDate>Mon, 18 Jan 2010 09:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59882</guid>
		<description><![CDATA[Dear Dave,

                 Please help me in same case as you helped atul. Same kind of problem i am also facing.

Actually i m doing a project in which there is a need to use the krutidev 066 font which uses symbol &#039; for the character (sheeti bala sha) and at the backend sqlserver distinguishes the string by separating through same symbol i.e. ( &#039; ).

I am have used all the parameters as you explained above but still same syntax problem is persist. I have changed datatype from varchar to nvarchar and have used the N prefix but no solution.  Please help me....


Thanks in advance
Kk]]></description>
		<content:encoded><![CDATA[<p>Dear Dave,</p>
<p>                 Please help me in same case as you helped atul. Same kind of problem i am also facing.</p>
<p>Actually i m doing a project in which there is a need to use the krutidev 066 font which uses symbol &#8216; for the character (sheeti bala sha) and at the backend sqlserver distinguishes the string by separating through same symbol i.e. ( &#8216; ).</p>
<p>I am have used all the parameters as you explained above but still same syntax problem is persist. I have changed datatype from varchar to nvarchar and have used the N prefix but no solution.  Please help me&#8230;.</p>
<p>Thanks in advance<br />
Kk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59203</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Thu, 31 Dec 2009 12:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59203</guid>
		<description><![CDATA[Hi Atul,

There are two things to keep in mind while storing unicode data. First the column must be of unicode data type (nchar, nvarchar, ntext). Second the value must be prefixed with N while insertion. For example 

INSERT INTO table (Hindi_col) values (N&#039;hindi data&#039;)

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hi Atul,</p>
<p>There are two things to keep in mind while storing unicode data. First the column must be of unicode data type (nchar, nvarchar, ntext). Second the value must be prefixed with N while insertion. For example </p>
<p>INSERT INTO table (Hindi_col) values (N&#8217;hindi data&#8217;)</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atul</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59107</link>
		<dc:creator><![CDATA[atul]]></dc:creator>
		<pubDate>Tue, 29 Dec 2009 16:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-59107</guid>
		<description><![CDATA[sir 
i m using asp .net and sql as a back end
after connection i have a problem to show hindi fonts from dababase and insert hindi into database 

i inserted water with its hindi meaning and than i got
???? marks in data base and when i execute ???? marks hi execute hota hai please help me sir]]></description>
		<content:encoded><![CDATA[<p>sir<br />
i m using asp .net and sql as a back end<br />
after connection i have a problem to show hindi fonts from dababase and insert hindi into database </p>
<p>i inserted water with its hindi meaning and than i got<br />
???? marks in data base and when i execute ???? marks hi execute hota hai please help me sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preeti</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-58803</link>
		<dc:creator><![CDATA[Preeti]]></dc:creator>
		<pubDate>Fri, 18 Dec 2009 14:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-58803</guid>
		<description><![CDATA[Hello all!

Great site and great people!!
Got a lot of help from here!!

Preeti]]></description>
		<content:encoded><![CDATA[<p>Hello all!</p>
<p>Great site and great people!!<br />
Got a lot of help from here!!</p>
<p>Preeti</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allice</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-54113</link>
		<dc:creator><![CDATA[Allice]]></dc:creator>
		<pubDate>Mon, 27 Jul 2009 06:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-54113</guid>
		<description><![CDATA[I am a beginner in SQL Server 2005. I want to work on dual languages in this. Please guide me how can i create a unicode databse and can save data in English and Hindi simulatneously.

Thanks and Regards
Allice]]></description>
		<content:encoded><![CDATA[<p>I am a beginner in SQL Server 2005. I want to work on dual languages in this. Please guide me how can i create a unicode databse and can save data in English and Hindi simulatneously.</p>
<p>Thanks and Regards<br />
Allice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-54069</link>
		<dc:creator><![CDATA[Richard]]></dc:creator>
		<pubDate>Fri, 24 Jul 2009 13:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-54069</guid>
		<description><![CDATA[Rabindranath,

the answer is simple, don&#039;t store it in plain text to begin with. SQL Server has encryption built in, but better to do one way encyption on the text before storing it - look at hashing and encryption in .Net it pretty straight forward]]></description>
		<content:encoded><![CDATA[<p>Rabindranath,</p>
<p>the answer is simple, don&#8217;t store it in plain text to begin with. SQL Server has encryption built in, but better to do one way encyption on the text before storing it &#8211; look at hashing and encryption in .Net it pretty straight forward</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabindranath</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-52863</link>
		<dc:creator><![CDATA[Rabindranath]]></dc:creator>
		<pubDate>Tue, 09 Jun 2009 08:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-52863</guid>
		<description><![CDATA[I have made a table of users with password field. but my problem is that I want nobaby can read that password even the users table is run. 

The table is made in SQL Server 2000.

Could you please help me providing the code in VB .NET

with best regards,

Rabindranath]]></description>
		<content:encoded><![CDATA[<p>I have made a table of users with password field. but my problem is that I want nobaby can read that password even the users table is run. </p>
<p>The table is made in SQL Server 2000.</p>
<p>Could you please help me providing the code in VB .NET</p>
<p>with best regards,</p>
<p>Rabindranath</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarita</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-50356</link>
		<dc:creator><![CDATA[sarita]]></dc:creator>
		<pubDate>Wed, 01 Apr 2009 11:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-50356</guid>
		<description><![CDATA[Hi Pinal,

I am trying to implement service broker between two different servers.

I am using following scripts to create Initiatore service brokers&#039;s object:

USE master;
GO
CREATE MASTER KEY
       ENCRYPTION BY PASSWORD = N&#039;&#039;;
GO

CREATE  LOGIN InitiatorUser with password = &#039;Password#123&#039;;

CREATE USER InitiatorUser ;
GO


CREATE CERTIFICATE InstInitiatorCertificate
     AUTHORIZATION InitiatorUser
     WITH SUBJECT = N&#039;Initiator Certificate&#039;,
          START_DATE = N&#039;12/31/2008&#039;;

BACKUP CERTIFICATE InstInitiatorCertificate
  TO FILE = 
N&#039;C:\InstInitiatorCertificate.cer&#039;;
GO

IF EXISTS (SELECT * FROM sys.endpoints
           WHERE name = N&#039;InstInitiatorEndpoint&#039;)
     DROP ENDPOINT InstInitiatorEndpoint;
GO
CREATE ENDPOINT InstInitiatorEndpoint
STATE = STARTED
AS TCP ( LISTENER_PORT = 4022 )
FOR SERVICE_BROKER (AUTHENTICATION = CERTIFICATE InstInitiatorCertificate);
GO


---I have created following certificate and user on target machine and from target machine I am creating following certificate.

CREATE  LOGIN TargetUser with password = &#039;Password#123&#039;;

CREATE USER TargetUser ;

CREATE CERTIFICATE InstTargetCertificate
     AUTHORIZATION TargetUser

 FROM FILE = 
N&#039;\\NHQGLBDM001\Ankur\InstTargetCertificate.cer&#039;;
GO

grant connect on endpoint::InstInitiatorEndpoint to targetuser
go

---------------Service Broker Objects----------------



CREATE MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]
       VALIDATION = WELL_FORMED_XML;
CREATE MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]
       VALIDATION = WELL_FORMED_XML;
GO

CREATE CONTRACT [//BothDB/2InstSample/SimpleContract]
      (
		[//BothDB/2InstSample/RequestMessage]
         SENT BY INITIATOR,
       [//BothDB/2InstSample/ReplyMessage]
         SENT BY TARGET
      );
GO

CREATE QUEUE InstInitiatorQueue;

CREATE SERVICE [//InstDB/2InstSample/InitiatorService]
       AUTHORIZATION InitiatorUser
       ON QUEUE InstInitiatorQueue;
GO

CREATE USER TargetUser WITHOUT LOGIN;

CREATE CERTIFICATE InstTargetCertificate 
   AUTHORIZATION TargetUser
   FROM FILE = &#039;\\Nhqglbdm001\Ankur\InstTargetCertificate.cer&#039;
GO



CREATE ROUTE InstTargetRoute
WITH SERVICE_NAME = &#039;//TgtDB/2InstSample/TargetService&#039;,
     ADDRESS = &#039;TCP://NHQGLBDM001:4022&#039;;

EXEC (@Cmd);

SET @Cmd = N&#039;USE msdb&#039;
CREATE ROUTE InstInitiatorRoute
WITH SERVICE_NAME =
       &#039;[//InstDB/2InstSample/InitiatorService]&#039;,
     ADDRESS = &#039;TCP://PNEITS1C1321D:4022&#039;;

DECLARE @Cmd NVARCHAR(4000);

SET @Cmd = N&#039;USE InstInitiatorDB&#039;;
EXEC (@Cmd);
GO
CREATE REMOTE SERVICE BINDING TargetBinding
      TO SERVICE 
         N&#039;//TgtDB/2InstSample/TargetService&#039;
      WITH USER = TargetUser;

GO



--------------------------Sending message-----------------------------
DECLARE @InitDlgHandle UNIQUEIDENTIFIER;
DECLARE @RequestMsg NVARCHAR(100);

BEGIN TRANSACTION;

BEGIN DIALOG @InitDlgHandle
     FROM SERVICE [//InstDB/2InstSample/InitiatorService]
     TO SERVICE N&#039;//TgtDB/2InstSample/TargetService&#039;
     ON CONTRACT [//BothDB/2InstSample/SimpleContract]
     WITH
         ENCRYPTION = ON;

SELECT @RequestMsg = N&#039;Message for Target service.&#039;;

SEND ON CONVERSATION @InitDlgHandle
     MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]
     (@RequestMsg);

SELECT @RequestMsg AS SentRequestMsg;

COMMIT TRANSACTION;
GO



following scripts to create Target service brokers&#039;s object:

USE master;

CREATE MASTER KEY
       ENCRYPTION BY PASSWORD = N&#039;&#039;;
GO
CREATE  LOGIN TargetUser with password = &#039;Password#123&#039;;

CREATE USER TargetUser ;

GO

CREATE CERTIFICATE InstTargetCertificate
     AUTHORIZATION TargetUser
     WITH SUBJECT = N&#039;Target Certificate&#039;,
          START_DATE = N&#039;12/31/2008&#039;;

BACKUP CERTIFICATE InstTargetCertificate
  TO FILE = 
N&#039;C:\InstTargetCertificate.cer&#039;;
GO


GO
IF EXISTS (SELECT * FROM master.sys.endpoints
           WHERE name = N&#039;InstTargetEndpoint&#039;)
     DROP ENDPOINT InstTargetEndpoint;
GO
CREATE ENDPOINT InstTargetEndpoint
STATE = STARTED
AS TCP ( LISTENER_PORT = 4022 )
FOR SERVICE_BROKER (AUTHENTICATION = CERTIFICATE InstTargetCertificate);
GO

--Following certificate is already created on Initiator machine and we are creating it from there.


CREATE  LOGIN InitiatorUser with password = &#039;Password#123&#039;;

CREATE USER InitiatorUser ;

CREATE CERTIFICATE InstInitiatorCertificate
     AUTHORIZATION InitiatorUser
  From FILE = 
N&#039;\\PNEITS1C1321D\shared\InstInitiatorCertificate.cer&#039;;

grant connect on endpoint::InstTargetEndpoint to InitiatorUser

-----------------------Service Broker objects---------------


CREATE MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]
       VALIDATION = WELL_FORMED_XML;
CREATE MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]
       VALIDATION = WELL_FORMED_XML;
GO

CREATE CONTRACT [//BothDB/2InstSample/SimpleContract]
      ([//BothDB/2InstSample/RequestMessage]
         SENT BY INITIATOR,
       [//BothDB/2InstSample/ReplyMessage]
         SENT BY TARGET
      );
GO

CREATE QUEUE InstTargetQueue;

CREATE SERVICE [//TgtDB/2InstSample/TargetService]
       AUTHORIZATION TargetUser
       ON QUEUE InstTargetQueue
       ([//BothDB/2InstSample/SimpleContract]);
GO

USE InstTargetDB
GO
CREATE USER InitiatorUser WITHOUT LOGIN;

CREATE CERTIFICATE InstInitiatorCertificate
   AUTHORIZATION InitiatorUser
   FROM FILE = 
&#039;\\Pneits1c1321d\Shared\InstInitiatorCertificate.cer&#039;;
GO


DECLARE @Cmd NVARCHAR(4000);

SET @Cmd = N&#039;USE InstTargetDB&#039;;
CREATE ROUTE InstInitiatorRoute
WITH SERVICE_NAME =
       &#039;//InstDB/2InstSample/InitiatorService&#039;,
     ADDRESS = &#039;TCP://Pneits1c1321d:4022&#039;;

EXEC (@Cmd);

SET @Cmd = N&#039;USE msdb&#039;
CREATE ROUTE InstTargetRoute
WITH SERVICE_NAME =
        &#039;//TgtDB/2InstSample/TargetService&#039;,
     ADDRESS = &#039;TCP://NHQGLBDM001:4022&#039;;

EXEC (@Cmd);
GO
GRANT SEND
      ON SERVICE::[//TgtDB/2InstSample/TargetService]
      TO InitiatorUser;
GO
CREATE REMOTE SERVICE BINDING InitiatorBinding
      TO SERVICE N&#039;//InstDB/2InstSample/InitiatorService&#039;
      WITH USER = InitiatorUser;
GO


DECLARE @RecvReqDlgHandle UNIQUEIDENTIFIER;
DECLARE @RecvReqMsg NVARCHAR(100);
DECLARE @RecvReqMsgName sysname;

BEGIN TRANSACTION;

WAITFOR
( RECEIVE TOP(1)
    @RecvReqDlgHandle = conversation_handle,
    @RecvReqMsg = message_body,
    @RecvReqMsgName = message_type_name
  FROM InstTargetQueue
), TIMEOUT 5000;

SELECT @RecvReqMsg AS ReceivedRequestMsg;

IF @RecvReqMsgName = N&#039;//BothDB/2InstSample/RequestMessage&#039;
BEGIN
     DECLARE @ReplyMsg NVARCHAR(100);
     SELECT @ReplyMsg =
        N&#039;Message for Initiator service.&#039;;

     SEND ON CONVERSATION @RecvReqDlgHandle
          MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]
          (@ReplyMsg);

     END CONVERSATION @RecvReqDlgHandle with cleanup; 
END

SELECT @ReplyMsg AS SentReplyMsg;

COMMIT TRANSACTION;
GO
--



I am able to see message in sys.transmission_queue view but transmission_status field value is coming blank.
And also can see a row in  sys.dm_broker_connections  view in CONVERSING state.

But unable to see message at target machine.

Could you please provide me a any help on it.
This very important coz I have to implement in my project.

Sarita]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am trying to implement service broker between two different servers.</p>
<p>I am using following scripts to create Initiatore service brokers&#8217;s object:</p>
<p>USE master;<br />
GO<br />
CREATE MASTER KEY<br />
       ENCRYPTION BY PASSWORD = N&#8221;;<br />
GO</p>
<p>CREATE  LOGIN InitiatorUser with password = &#8216;Password#123&#8242;;</p>
<p>CREATE USER InitiatorUser ;<br />
GO</p>
<p>CREATE CERTIFICATE InstInitiatorCertificate<br />
     AUTHORIZATION InitiatorUser<br />
     WITH SUBJECT = N&#8217;Initiator Certificate&#8217;,<br />
          START_DATE = N&#8217;12/31/2008&#8242;;</p>
<p>BACKUP CERTIFICATE InstInitiatorCertificate<br />
  TO FILE =<br />
N&#8217;C:\InstInitiatorCertificate.cer&#8217;;<br />
GO</p>
<p>IF EXISTS (SELECT * FROM sys.endpoints<br />
           WHERE name = N&#8217;InstInitiatorEndpoint&#8217;)<br />
     DROP ENDPOINT InstInitiatorEndpoint;<br />
GO<br />
CREATE ENDPOINT InstInitiatorEndpoint<br />
STATE = STARTED<br />
AS TCP ( LISTENER_PORT = 4022 )<br />
FOR SERVICE_BROKER (AUTHENTICATION = CERTIFICATE InstInitiatorCertificate);<br />
GO</p>
<p>&#8212;I have created following certificate and user on target machine and from target machine I am creating following certificate.</p>
<p>CREATE  LOGIN TargetUser with password = &#8216;Password#123&#8242;;</p>
<p>CREATE USER TargetUser ;</p>
<p>CREATE CERTIFICATE InstTargetCertificate<br />
     AUTHORIZATION TargetUser</p>
<p> FROM FILE =<br />
N&#8217;\\NHQGLBDM001\Ankur\InstTargetCertificate.cer&#8217;;<br />
GO</p>
<p>grant connect on endpoint::InstInitiatorEndpoint to targetuser<br />
go</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;Service Broker Objects&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>CREATE MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]<br />
       VALIDATION = WELL_FORMED_XML;<br />
CREATE MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]<br />
       VALIDATION = WELL_FORMED_XML;<br />
GO</p>
<p>CREATE CONTRACT [//BothDB/2InstSample/SimpleContract]<br />
      (<br />
		[//BothDB/2InstSample/RequestMessage]<br />
         SENT BY INITIATOR,<br />
       [//BothDB/2InstSample/ReplyMessage]<br />
         SENT BY TARGET<br />
      );<br />
GO</p>
<p>CREATE QUEUE InstInitiatorQueue;</p>
<p>CREATE SERVICE [//InstDB/2InstSample/InitiatorService]<br />
       AUTHORIZATION InitiatorUser<br />
       ON QUEUE InstInitiatorQueue;<br />
GO</p>
<p>CREATE USER TargetUser WITHOUT LOGIN;</p>
<p>CREATE CERTIFICATE InstTargetCertificate<br />
   AUTHORIZATION TargetUser<br />
   FROM FILE = &#8216;\\Nhqglbdm001\Ankur\InstTargetCertificate.cer&#8217;<br />
GO</p>
<p>CREATE ROUTE InstTargetRoute<br />
WITH SERVICE_NAME = &#8216;//TgtDB/2InstSample/TargetService&#8217;,<br />
     ADDRESS = &#8216;TCP://NHQGLBDM001:4022&#8242;;</p>
<p>EXEC (@Cmd);</p>
<p>SET @Cmd = N&#8217;USE msdb&#8217;<br />
CREATE ROUTE InstInitiatorRoute<br />
WITH SERVICE_NAME =<br />
       &#8216;[//InstDB/2InstSample/InitiatorService]&#8216;,<br />
     ADDRESS = &#8216;TCP://PNEITS1C1321D:4022&#8242;;</p>
<p>DECLARE @Cmd NVARCHAR(4000);</p>
<p>SET @Cmd = N&#8217;USE InstInitiatorDB&#8217;;<br />
EXEC (@Cmd);<br />
GO<br />
CREATE REMOTE SERVICE BINDING TargetBinding<br />
      TO SERVICE<br />
         N&#8217;//TgtDB/2InstSample/TargetService&#8217;<br />
      WITH USER = TargetUser;</p>
<p>GO</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Sending message&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
DECLARE @InitDlgHandle UNIQUEIDENTIFIER;<br />
DECLARE @RequestMsg NVARCHAR(100);</p>
<p>BEGIN TRANSACTION;</p>
<p>BEGIN DIALOG @InitDlgHandle<br />
     FROM SERVICE [//InstDB/2InstSample/InitiatorService]<br />
     TO SERVICE N&#8217;//TgtDB/2InstSample/TargetService&#8217;<br />
     ON CONTRACT [//BothDB/2InstSample/SimpleContract]<br />
     WITH<br />
         ENCRYPTION = ON;</p>
<p>SELECT @RequestMsg = N&#8217;Message for Target service.&#8217;;</p>
<p>SEND ON CONVERSATION @InitDlgHandle<br />
     MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]<br />
     (@RequestMsg);</p>
<p>SELECT @RequestMsg AS SentRequestMsg;</p>
<p>COMMIT TRANSACTION;<br />
GO</p>
<p>following scripts to create Target service brokers&#8217;s object:</p>
<p>USE master;</p>
<p>CREATE MASTER KEY<br />
       ENCRYPTION BY PASSWORD = N&#8221;;<br />
GO<br />
CREATE  LOGIN TargetUser with password = &#8216;Password#123&#8242;;</p>
<p>CREATE USER TargetUser ;</p>
<p>GO</p>
<p>CREATE CERTIFICATE InstTargetCertificate<br />
     AUTHORIZATION TargetUser<br />
     WITH SUBJECT = N&#8217;Target Certificate&#8217;,<br />
          START_DATE = N&#8217;12/31/2008&#8242;;</p>
<p>BACKUP CERTIFICATE InstTargetCertificate<br />
  TO FILE =<br />
N&#8217;C:\InstTargetCertificate.cer&#8217;;<br />
GO</p>
<p>GO<br />
IF EXISTS (SELECT * FROM master.sys.endpoints<br />
           WHERE name = N&#8217;InstTargetEndpoint&#8217;)<br />
     DROP ENDPOINT InstTargetEndpoint;<br />
GO<br />
CREATE ENDPOINT InstTargetEndpoint<br />
STATE = STARTED<br />
AS TCP ( LISTENER_PORT = 4022 )<br />
FOR SERVICE_BROKER (AUTHENTICATION = CERTIFICATE InstTargetCertificate);<br />
GO</p>
<p>&#8211;Following certificate is already created on Initiator machine and we are creating it from there.</p>
<p>CREATE  LOGIN InitiatorUser with password = &#8216;Password#123&#8242;;</p>
<p>CREATE USER InitiatorUser ;</p>
<p>CREATE CERTIFICATE InstInitiatorCertificate<br />
     AUTHORIZATION InitiatorUser<br />
  From FILE =<br />
N&#8217;\\PNEITS1C1321D\shared\InstInitiatorCertificate.cer&#8217;;</p>
<p>grant connect on endpoint::InstTargetEndpoint to InitiatorUser</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Service Broker objects&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>CREATE MESSAGE TYPE [//BothDB/2InstSample/RequestMessage]<br />
       VALIDATION = WELL_FORMED_XML;<br />
CREATE MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]<br />
       VALIDATION = WELL_FORMED_XML;<br />
GO</p>
<p>CREATE CONTRACT [//BothDB/2InstSample/SimpleContract]<br />
      ([//BothDB/2InstSample/RequestMessage]<br />
         SENT BY INITIATOR,<br />
       [//BothDB/2InstSample/ReplyMessage]<br />
         SENT BY TARGET<br />
      );<br />
GO</p>
<p>CREATE QUEUE InstTargetQueue;</p>
<p>CREATE SERVICE [//TgtDB/2InstSample/TargetService]<br />
       AUTHORIZATION TargetUser<br />
       ON QUEUE InstTargetQueue<br />
       ([//BothDB/2InstSample/SimpleContract]);<br />
GO</p>
<p>USE InstTargetDB<br />
GO<br />
CREATE USER InitiatorUser WITHOUT LOGIN;</p>
<p>CREATE CERTIFICATE InstInitiatorCertificate<br />
   AUTHORIZATION InitiatorUser<br />
   FROM FILE =<br />
&#8216;\\Pneits1c1321d\Shared\InstInitiatorCertificate.cer&#8217;;<br />
GO</p>
<p>DECLARE @Cmd NVARCHAR(4000);</p>
<p>SET @Cmd = N&#8217;USE InstTargetDB&#8217;;<br />
CREATE ROUTE InstInitiatorRoute<br />
WITH SERVICE_NAME =<br />
       &#8216;//InstDB/2InstSample/InitiatorService&#8217;,<br />
     ADDRESS = &#8216;TCP://Pneits1c1321d:4022&#8242;;</p>
<p>EXEC (@Cmd);</p>
<p>SET @Cmd = N&#8217;USE msdb&#8217;<br />
CREATE ROUTE InstTargetRoute<br />
WITH SERVICE_NAME =<br />
        &#8216;//TgtDB/2InstSample/TargetService&#8217;,<br />
     ADDRESS = &#8216;TCP://NHQGLBDM001:4022&#8242;;</p>
<p>EXEC (@Cmd);<br />
GO<br />
GRANT SEND<br />
      ON SERVICE::[//TgtDB/2InstSample/TargetService]<br />
      TO InitiatorUser;<br />
GO<br />
CREATE REMOTE SERVICE BINDING InitiatorBinding<br />
      TO SERVICE N&#8217;//InstDB/2InstSample/InitiatorService&#8217;<br />
      WITH USER = InitiatorUser;<br />
GO</p>
<p>DECLARE @RecvReqDlgHandle UNIQUEIDENTIFIER;<br />
DECLARE @RecvReqMsg NVARCHAR(100);<br />
DECLARE @RecvReqMsgName sysname;</p>
<p>BEGIN TRANSACTION;</p>
<p>WAITFOR<br />
( RECEIVE TOP(1)<br />
    @RecvReqDlgHandle = conversation_handle,<br />
    @RecvReqMsg = message_body,<br />
    @RecvReqMsgName = message_type_name<br />
  FROM InstTargetQueue<br />
), TIMEOUT 5000;</p>
<p>SELECT @RecvReqMsg AS ReceivedRequestMsg;</p>
<p>IF @RecvReqMsgName = N&#8217;//BothDB/2InstSample/RequestMessage&#8217;<br />
BEGIN<br />
     DECLARE @ReplyMsg NVARCHAR(100);<br />
     SELECT @ReplyMsg =<br />
        N&#8217;Message for Initiator service.&#8217;;</p>
<p>     SEND ON CONVERSATION @RecvReqDlgHandle<br />
          MESSAGE TYPE [//BothDB/2InstSample/ReplyMessage]<br />
          (@ReplyMsg);</p>
<p>     END CONVERSATION @RecvReqDlgHandle with cleanup;<br />
END</p>
<p>SELECT @ReplyMsg AS SentReplyMsg;</p>
<p>COMMIT TRANSACTION;<br />
GO<br />
&#8211;</p>
<p>I am able to see message in sys.transmission_queue view but transmission_status field value is coming blank.<br />
And also can see a row in  sys.dm_broker_connections  view in CONVERSING state.</p>
<p>But unable to see message at target machine.</p>
<p>Could you please provide me a any help on it.<br />
This very important coz I have to implement in my project.</p>
<p>Sarita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2005 Collation Explanation and Translation - Part 2 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-50167</link>
		<dc:creator><![CDATA[SQL SERVER - 2005 Collation Explanation and Translation - Part 2 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Sun, 29 Mar 2009 11:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-50167</guid>
		<description><![CDATA[[...] Following function return all the available collation of SQL Server 2005. My previous article about the SQL SERVER - 2005 Collation Explanation and Translation. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Following function return all the available collation of SQL Server 2005. My previous article about the SQL SERVER &#8211; 2005 Collation Explanation and Translation. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 2 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-47463</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers - Part 2 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 11:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-47463</guid>
		<description><![CDATA[[...] Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case sensitivity, accent marks, kana character types and character width. (Read More Here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case sensitivity, accent marks, kana character types and character width. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-47119</link>
		<dc:creator><![CDATA[Prashant]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 10:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-47119</guid>
		<description><![CDATA[For Arifin Query anwser:


Unicode string constants that appear in code executed on the server, such as in stored procedures and triggers, must be preceded by the capital letter N. If a string literal is not in Unicode (marked with the N prefix), the string is converted to the default code page of the database, which may not recognize certain characters. With multilingual data it is best to use a Unicode data type and Unicode string literals.

The following example shows a Unicode string designated by placing an &quot;n&quot; prefix in front of the string:
Copy Code

SELECT n&#039;&#039;

Figure 11 shows how this string, which is the Hindi word for the Hindi language, would appear on a computer that had the correct Hindi font installed.]]></description>
		<content:encoded><![CDATA[<p>For Arifin Query anwser:</p>
<p>Unicode string constants that appear in code executed on the server, such as in stored procedures and triggers, must be preceded by the capital letter N. If a string literal is not in Unicode (marked with the N prefix), the string is converted to the default code page of the database, which may not recognize certain characters. With multilingual data it is best to use a Unicode data type and Unicode string literals.</p>
<p>The following example shows a Unicode string designated by placing an &#8220;n&#8221; prefix in front of the string:<br />
Copy Code</p>
<p>SELECT n&#8217;&#8217;</p>
<p>Figure 11 shows how this string, which is the Hindi word for the Hindi language, would appear on a computer that had the correct Hindi font installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kalyaan</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-46587</link>
		<dc:creator><![CDATA[kalyaan]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 04:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-46587</guid>
		<description><![CDATA[i have 3 table in sql-serverhaving coloumn quantity, i have to deduct the quantity from table1-table2 = table3 

any help me out, how to write the query for this.]]></description>
		<content:encoded><![CDATA[<p>i have 3 table in sql-serverhaving coloumn quantity, i have to deduct the quantity from table1-table2 = table3 </p>
<p>any help me out, how to write the query for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-45617</link>
		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Wed, 14 Jan 2009 21:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-45617</guid>
		<description><![CDATA[Hi.

I was having a boatload of trouble with Chinese characters in SQL Server 2005.

Found some things that worked.

If the column is of &#039;n&#039; type, line nchar or nvarchar, I had much more of a chance of it working right.

Also, since I was retrieving the data if from an IIS, the client&#039;s IE had to have the right encoding; in my case since I was using Simplified Chinese, the Big5 encoding (which is Traditional Chenese) would display incorrect characters.

So, all I can say is: 谢谢!

--Joe]]></description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I was having a boatload of trouble with Chinese characters in SQL Server 2005.</p>
<p>Found some things that worked.</p>
<p>If the column is of &#8216;n&#8217; type, line nchar or nvarchar, I had much more of a chance of it working right.</p>
<p>Also, since I was retrieving the data if from an IIS, the client&#8217;s IE had to have the right encoding; in my case since I was using Simplified Chinese, the Big5 encoding (which is Traditional Chenese) would display incorrect characters.</p>
<p>So, all I can say is: 谢谢!</p>
<p>&#8211;Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sairam</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-44106</link>
		<dc:creator><![CDATA[Sairam]]></dc:creator>
		<pubDate>Fri, 07 Nov 2008 20:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-44106</guid>
		<description><![CDATA[Hi pinal,

I have a table with some columns where both english and chinese data are stored. when i query the table, the chiese characters appear like barcodes. However, when i copy the particular data and paste it in the query pane or any text editor(MS word , notepad etc), i am able to see the proper chinese text. Can you please explain why this is so?
Also, when i query the same table with a &#039;where&#039; condition involving that particular column and paste the same chinese text as the condition value, the query doesn&#039;t show up any results. Any help in this regard would be of great help. Thanks.

P.S: I&#039;m still a newbie to sql server 2005]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>I have a table with some columns where both english and chinese data are stored. when i query the table, the chiese characters appear like barcodes. However, when i copy the particular data and paste it in the query pane or any text editor(MS word , notepad etc), i am able to see the proper chinese text. Can you please explain why this is so?<br />
Also, when i query the same table with a &#8216;where&#8217; condition involving that particular column and paste the same chinese text as the condition value, the query doesn&#8217;t show up any results. Any help in this regard would be of great help. Thanks.</p>
<p>P.S: I&#8217;m still a newbie to sql server 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arifin</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-43593</link>
		<dc:creator><![CDATA[Arifin]]></dc:creator>
		<pubDate>Wed, 08 Oct 2008 10:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-43593</guid>
		<description><![CDATA[Hi Dave,

I have a problem on save Thai character in any table. I&#039;m using SQL Server 2005 and I&#039;ve changed the collation into THAI_CI_AS. I don&#039;t know what setup else that I miss, every I save by using Thai character, there was always &#039;????&#039; character appear on the field.
Could you give me some suggestion?

Thanks,

Afin]]></description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have a problem on save Thai character in any table. I&#8217;m using SQL Server 2005 and I&#8217;ve changed the collation into THAI_CI_AS. I don&#8217;t know what setup else that I miss, every I save by using Thai character, there was always &#8216;????&#8217; character appear on the field.<br />
Could you give me some suggestion?</p>
<p>Thanks,</p>
<p>Afin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-5125</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Mon, 16 Jul 2007 06:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/24/sql-server-2005-collation-explanation-and-translation/#comment-5125</guid>
		<description><![CDATA[Very interesting question Amit,

Let me give you my opinion. First I have never worked with Chinese language so I do not sure if that ? is Chinese char or it should be ? itself.

From my experience with multi-language database I have think following thing may help.
1) There is no proper collation of the foreign language.

2) We had problem when our website is searched by someone who knows Italian and Spanish together, we need different collation for both. However, if we use only one we end up with only BOX symbol in our browser. 
If we know our search is in those language we change collation in both the language and merge them using our complex logic matching algorithm/function.

3) sometime stored data is in special char and searched char when they reach at comparison level they are also compared to special char and search works for us.
What these means is if &quot;Apple&quot; is converted into database is &quot;bapple&quot;, when we try to search for apple it is converted to &quot;bapple&quot; when collation used in our database. So &quot;bapple&quot; is compared against &quot;bapple&quot; and gives us match.

4) It may be possible they are query string separate ( this is what I just thought, while writing this comment) 

Kind Regards,
Pinal Dave (SQLAuthority.com)]]></description>
		<content:encoded><![CDATA[<p>Very interesting question Amit,</p>
<p>Let me give you my opinion. First I have never worked with Chinese language so I do not sure if that ? is Chinese char or it should be ? itself.</p>
<p>From my experience with multi-language database I have think following thing may help.<br />
1) There is no proper collation of the foreign language.</p>
<p>2) We had problem when our website is searched by someone who knows Italian and Spanish together, we need different collation for both. However, if we use only one we end up with only BOX symbol in our browser.<br />
If we know our search is in those language we change collation in both the language and merge them using our complex logic matching algorithm/function.</p>
<p>3) sometime stored data is in special char and searched char when they reach at comparison level they are also compared to special char and search works for us.<br />
What these means is if &#8220;Apple&#8221; is converted into database is &#8220;bapple&#8221;, when we try to search for apple it is converted to &#8220;bapple&#8221; when collation used in our database. So &#8220;bapple&#8221; is compared against &#8220;bapple&#8221; and gives us match.</p>
<p>4) It may be possible they are query string separate ( this is what I just thought, while writing this comment) </p>
<p>Kind Regards,<br />
Pinal Dave (SQLAuthority.com)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

