<?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 &#8211; Find Database Collation Using T-SQL and SSMS</title>
	<atom:link href="http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/</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: Frank Meijer</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-249574</link>
		<dc:creator><![CDATA[Frank Meijer]]></dc:creator>
		<pubDate>Tue, 07 Feb 2012 15:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-249574</guid>
		<description><![CDATA[Is there an easy way to change the collation of the server?

I installed SQL2008R2 to my new laptop but it hasn&#039;t the collation I need for my databases. On my old laptop it was &#039;Latin1_General_CI_AS&#039; and on my new one it is &#039;SQL_Latin1_General_CP1_CI_AS&#039;.

All my old databases I&#039;ve attached, but when I create a temp table I get error messages that the collations are not the same. So SQL can&#039;t compare the varchar fields that I use to make a join.

Regards,
Frank Meijer]]></description>
		<content:encoded><![CDATA[<p>Is there an easy way to change the collation of the server?</p>
<p>I installed SQL2008R2 to my new laptop but it hasn&#8217;t the collation I need for my databases. On my old laptop it was &#8216;Latin1_General_CI_AS&#8217; and on my new one it is &#8216;SQL_Latin1_General_CP1_CI_AS&#8217;.</p>
<p>All my old databases I&#8217;ve attached, but when I create a temp table I get error messages that the collations are not the same. So SQL can&#8217;t compare the varchar fields that I use to make a join.</p>
<p>Regards,<br />
Frank Meijer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Collation and Collation Sensitivity &#8211; Quiz &#8211; Puzzle &#8211; 6 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-233263</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Collation and Collation Sensitivity &#8211; Quiz &#8211; Puzzle &#8211; 6 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 01:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-233263</guid>
		<description><![CDATA[[...] Table Column Using T-SQL SQL SERVER – Cannot resolve collation conflict for equal to operation Find Database Collation Using T-SQL and SSMS Change Collation of Database Column – T-SQL Script – Consolidating Collations [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Table Column Using T-SQL SQL SERVER – Cannot resolve collation conflict for equal to operation Find Database Collation Using T-SQL and SSMS Change Collation of Database Column – T-SQL Script – Consolidating Collations [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohit</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-211288</link>
		<dc:creator><![CDATA[mohit]]></dc:creator>
		<pubDate>Mon, 05 Dec 2011 12:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-211288</guid>
		<description><![CDATA[SELECT name, collation_name
FROM sys.columns
WHERE OBJECT_ID IN (SELECT OBJECT_ID
FROM sys.objects
WHERE type = &#039;U&#039;
AND name = )
AND name = ]]></description>
		<content:encoded><![CDATA[<p>SELECT name, collation_name<br />
FROM sys.columns<br />
WHERE OBJECT_ID IN (SELECT OBJECT_ID<br />
FROM sys.objects<br />
WHERE type = &#8216;U&#8217;<br />
AND name = )<br />
AND name =</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alok</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-203565</link>
		<dc:creator><![CDATA[Alok]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 09:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-203565</guid>
		<description><![CDATA[Hi,

How to check collation information at cloumn level in table, Is there any query?

Regards,

Alok]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How to check collation information at cloumn level in table, Is there any query?</p>
<p>Regards,</p>
<p>Alok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Detecting Database Case Sensitive Property using fn_helpcollations() &#171; Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-175504</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Detecting Database Case Sensitive Property using fn_helpcollations() &#171; Journey to SQLAuthority]]></dc:creator>
		<pubDate>Thu, 06 Oct 2011 01:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-175504</guid>
		<description><![CDATA[[...] of the database and check the properties of the collation. I have previously written how one can identify database collation. Once you have figured out the collation of the database, you can put that in the WHERE condition [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of the database and check the properties of the collation. I have previously written how one can identify database collation. Once you have figured out the collation of the database, you can put that in the WHERE condition [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karty</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-175271</link>
		<dc:creator><![CDATA[Karty]]></dc:creator>
		<pubDate>Wed, 05 Oct 2011 05:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-175271</guid>
		<description><![CDATA[Hi...

How can i Find what type of database installed in my system (eg: sql server2005, 2008, oracle,..)]]></description>
		<content:encoded><![CDATA[<p>Hi&#8230;</p>
<p>How can i Find what type of database installed in my system (eg: sql server2005, 2008, oracle,..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nita Reddy</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-166279</link>
		<dc:creator><![CDATA[Nita Reddy]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 16:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-166279</guid>
		<description><![CDATA[How to change Default Collation to UTF_8 in database]]></description>
		<content:encoded><![CDATA[<p>How to change Default Collation to UTF_8 in database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prash48</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-140183</link>
		<dc:creator><![CDATA[prash48]]></dc:creator>
		<pubDate>Fri, 10 Jun 2011 07:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-140183</guid>
		<description><![CDATA[Hi Pinal,
I&#039;ve quite different problem. In my production DB I&#039;ve recently modified size of one varchar(30) to varchar(256) and then after the related SPs stops functioning and after research work I&#039;ve found that it is because of collation problem.

So, can you please tell me what execectly it is, what to do in order to solve this issue and do I need to each and every SPs that uses this table..

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
I&#8217;ve quite different problem. In my production DB I&#8217;ve recently modified size of one varchar(30) to varchar(256) and then after the related SPs stops functioning and after research work I&#8217;ve found that it is because of collation problem.</p>
<p>So, can you please tell me what execectly it is, what to do in order to solve this issue and do I need to each and every SPs that uses this table..</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siva Krishna</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-139955</link>
		<dc:creator><![CDATA[Siva Krishna]]></dc:creator>
		<pubDate>Thu, 09 Jun 2011 06:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-139955</guid>
		<description><![CDATA[In sql 2005 the script is working fine.

select name, collation_name, * from sys.databases

Could you please tell me how can i find in sql 2000.]]></description>
		<content:encoded><![CDATA[<p>In sql 2005 the script is working fine.</p>
<p>select name, collation_name, * from sys.databases</p>
<p>Could you please tell me how can i find in sql 2000.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-133827</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 10 May 2011 13:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-133827</guid>
		<description><![CDATA[SELECT @@VERSION]]></description>
		<content:encoded><![CDATA[<p>SELECT @@VERSION</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sairamakrishna</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-133559</link>
		<dc:creator><![CDATA[sairamakrishna]]></dc:creator>
		<pubDate>Mon, 09 May 2011 05:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-133559</guid>
		<description><![CDATA[Respected Sir,

how to find whether the installed version of sql server in the local system is client version or Server Version.]]></description>
		<content:encoded><![CDATA[<p>Respected Sir,</p>
<p>how to find whether the installed version of sql server in the local system is client version or Server Version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-100994</link>
		<dc:creator><![CDATA[Luis]]></dc:creator>
		<pubDate>Fri, 19 Nov 2010 19:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-100994</guid>
		<description><![CDATA[Thanks for your post it was very helpful!]]></description>
		<content:encoded><![CDATA[<p>Thanks for your post it was very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-64245</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Thu, 01 Apr 2010 17:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-64245</guid>
		<description><![CDATA[Hello Pankaj,

Use the below query:

select name, collation_name, * from sys.databases

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Pankaj,</p>
<p>Use the below query:</p>
<p>select name, collation_name, * from sys.databases</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pankaj balooni</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-64205</link>
		<dc:creator><![CDATA[pankaj balooni]]></dc:creator>
		<pubDate>Thu, 01 Apr 2010 09:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-64205</guid>
		<description><![CDATA[how can i list out all the DBs and there respective collation settings for an instance?]]></description>
		<content:encoded><![CDATA[<p>how can i list out all the DBs and there respective collation settings for an instance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mbourgon</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-63493</link>
		<dc:creator><![CDATA[Mbourgon]]></dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-63493</guid>
		<description><![CDATA[Here&#039;s a way to get the server collation (since the server can have a different collation than the db):

select serverproperty(&#039;collation&#039;)]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s a way to get the server collation (since the server can have a different collation than the db):</p>
<p>select serverproperty(&#8216;collation&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rod</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-59433</link>
		<dc:creator><![CDATA[Rod]]></dc:creator>
		<pubDate>Thu, 07 Jan 2010 12:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-59433</guid>
		<description><![CDATA[I&#039;m getting scalar variable errors when I am declaring the statements can an incrrect collation cause this?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m getting scalar variable errors when I am declaring the statements can an incrrect collation cause this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavReddy</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-56641</link>
		<dc:creator><![CDATA[RavReddy]]></dc:creator>
		<pubDate>Tue, 13 Oct 2009 06:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-56641</guid>
		<description><![CDATA[Nice discussion about Collation.]]></description>
		<content:encoded><![CDATA[<p>Nice discussion about Collation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-54194</link>
		<dc:creator><![CDATA[Krishna]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-54194</guid>
		<description><![CDATA[Quite helpful.]]></description>
		<content:encoded><![CDATA[<p>Quite helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-50962</link>
		<dc:creator><![CDATA[Ravi]]></dc:creator>
		<pubDate>Tue, 14 Apr 2009 12:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-50962</guid>
		<description><![CDATA[Hi,

 Could you please tell me how to change the collation of an existing database to UTF-16 for working with Cognos.

If the solution is in series of steps it would be helpful.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> Could you please tell me how to change the collation of an existing database to UTF-16 for working with Cognos.</p>
<p>If the solution is in series of steps it would be helpful.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: calio</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-46075</link>
		<dc:creator><![CDATA[calio]]></dc:creator>
		<pubDate>Wed, 28 Jan 2009 15:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-46075</guid>
		<description><![CDATA[how can i change the Current Collation via T-SQL ?]]></description>
		<content:encoded><![CDATA[<p>how can i change the Current Collation via T-SQL ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loureiro</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-39391</link>
		<dc:creator><![CDATA[Loureiro]]></dc:creator>
		<pubDate>Fri, 20 Jun 2008 14:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-39391</guid>
		<description><![CDATA[Hi,

How can I  find collation of my csv file.
Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How can I  find collation of my csv file.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS - Part 2 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-35134</link>
		<dc:creator><![CDATA[SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS - Part 2 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Wed, 16 Apr 2008 11:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-35134</guid>
		<description><![CDATA[[...] 11, 2008 by pinaldave    Previously I have written two different ways to find database collation SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS. One of blog reader jwwishart has posted another method for doing the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 11, 2008 by pinaldave    Previously I have written two different ways to find database collation SQL SERVER &#8211; 2005 &#8211; Find Database Collation Using T-SQL and SSMS. One of blog reader jwwishart has posted another method for doing the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwwishart</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-35122</link>
		<dc:creator><![CDATA[jwwishart]]></dc:creator>
		<pubDate>Wed, 16 Apr 2008 06:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-35122</guid>
		<description><![CDATA[The following also works. Little bit less typing but otherwise its returns the same result

SELECT collation_name FROM sys.databases WHERE name = &#039;AdventureWorks&#039;]]></description>
		<content:encoded><![CDATA[<p>The following also works. Little bit less typing but otherwise its returns the same result</p>
<p>SELECT collation_name FROM sys.databases WHERE name = &#8216;AdventureWorks&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Thomas</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-29723</link>
		<dc:creator><![CDATA[Jose Thomas]]></dc:creator>
		<pubDate>Fri, 28 Dec 2007 05:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-29723</guid>
		<description><![CDATA[Hi to all...

I am new to SQL. here is my doubt.
I have a stored procedure in that how can i find the collation errors.

Example: i am having a query like this, it is a stored procedure in that how can i find collation error is there or not. 

My SP is like this:

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROC [dbo].[CC_BTCC_WRITE_QUEUE_ROUTING_T0_XML](@ReqID bigint, @tmpxml nvarchar(4000) out,@QueueID nvarchar(15),@ID as int)
AS
BEGIN
--Write Strategy Routing Rules
/**** STRATEGY Time Based Routing****/	
Declare @tmpTBRoute nvarchar(1000)
Declare @QueRoutingID nvarchar(100)
Declare @QueRoutingType nvarchar(100)

EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#039;&#039;,@ID	

DECLARE GETSTRATEGY_ROUTING_CURSOR CURSOR FORWARD_ONLY
FOR 
SELECT N&#039;&#039;, ID, RoutingType
FROM dbo.WRK_CC_Routing 
WHERE ParentID = @QueueID
AND ReqID = @ReqID
ORDER BY RoutingMediaType, RoutingType, Behaviour,Name
--OPEN
OPEN GETSTRATEGY_ROUTING_CURSOR 	
--GET initial
FETCH NEXT FROM GETSTRATEGY_ROUTING_CURSOR 
INTO @tmpTBRoute ,@QueRoutingID, @QueRoutingType
--Iterate
WHILE @@FETCH_STATUS = 0
BEGIN	
	EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,@tmpTBRoute,@ID	
	
		/**** STRATEGY Queue Routing Forward Numbers ****/	
		EXEC CC_BTCC_WRITE_STRATEGY_ROUTING_FORWARD_NUMBERS_T0_XML @ReqID , @tmpxml out, @QueRoutingID, &#039;Standard&#039;, @ID 	
		/*======= STRATEGY Queue Routing Forward Numbers ======*/	
	
		/**** STRATEGY Queue Routing Search List Items ****/	
		EXEC CC_BTCC_WRITE_STRATEGY_ROUTING_SEARCH_ITEMS_T0_XML @ReqID, @tmpxml out, @QueRoutingID , @QueRoutingType , @ID 
		/**** STRATEGY Queue Routing Search List Items ****/

	--GET Next
	EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#039;&#039;,@ID
	FETCH NEXT FROM GETSTRATEGY_ROUTING_CURSOR 
	INTO @tmpTBRoute ,@QueRoutingID, @QueRoutingType
END
CLOSE GETSTRATEGY_ROUTING_CURSOR
DEALLOCATE GETSTRATEGY_ROUTING_CURSOR

EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#039;&#039;,@ID
/*=======  STRATEGY Time Based Routing ======*/	


END

When i am executing this SP i am getting commands completed successfully. But some collation error is in this SP.

In this SP how can i find the collation error is occurs or not. 
Help me friends.

Waiting for good reply..]]></description>
		<content:encoded><![CDATA[<p>Hi to all&#8230;</p>
<p>I am new to SQL. here is my doubt.<br />
I have a stored procedure in that how can i find the collation errors.</p>
<p>Example: i am having a query like this, it is a stored procedure in that how can i find collation error is there or not. </p>
<p>My SP is like this:</p>
<p>set ANSI_NULLS ON<br />
set QUOTED_IDENTIFIER ON<br />
go<br />
ALTER PROC [dbo].[CC_BTCC_WRITE_QUEUE_ROUTING_T0_XML](@ReqID bigint, @tmpxml nvarchar(4000) out,@QueueID nvarchar(15),@ID as int)<br />
AS<br />
BEGIN<br />
&#8211;Write Strategy Routing Rules<br />
/**** STRATEGY Time Based Routing****/<br />
Declare @tmpTBRoute nvarchar(1000)<br />
Declare @QueRoutingID nvarchar(100)<br />
Declare @QueRoutingType nvarchar(100)</p>
<p>EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#8221;,@ID	</p>
<p>DECLARE GETSTRATEGY_ROUTING_CURSOR CURSOR FORWARD_ONLY<br />
FOR<br />
SELECT N&#8221;, ID, RoutingType<br />
FROM dbo.WRK_CC_Routing<br />
WHERE ParentID = @QueueID<br />
AND ReqID = @ReqID<br />
ORDER BY RoutingMediaType, RoutingType, Behaviour,Name<br />
&#8211;OPEN<br />
OPEN GETSTRATEGY_ROUTING_CURSOR<br />
&#8211;GET initial<br />
FETCH NEXT FROM GETSTRATEGY_ROUTING_CURSOR<br />
INTO @tmpTBRoute ,@QueRoutingID, @QueRoutingType<br />
&#8211;Iterate<br />
WHILE @@FETCH_STATUS = 0<br />
BEGIN<br />
	EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,@tmpTBRoute,@ID	</p>
<p>		/**** STRATEGY Queue Routing Forward Numbers ****/<br />
		EXEC CC_BTCC_WRITE_STRATEGY_ROUTING_FORWARD_NUMBERS_T0_XML @ReqID , @tmpxml out, @QueRoutingID, &#8216;Standard&#8217;, @ID<br />
		/*======= STRATEGY Queue Routing Forward Numbers ======*/	</p>
<p>		/**** STRATEGY Queue Routing Search List Items ****/<br />
		EXEC CC_BTCC_WRITE_STRATEGY_ROUTING_SEARCH_ITEMS_T0_XML @ReqID, @tmpxml out, @QueRoutingID , @QueRoutingType , @ID<br />
		/**** STRATEGY Queue Routing Search List Items ****/</p>
<p>	&#8211;GET Next<br />
	EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#8221;,@ID<br />
	FETCH NEXT FROM GETSTRATEGY_ROUTING_CURSOR<br />
	INTO @tmpTBRoute ,@QueRoutingID, @QueRoutingType<br />
END<br />
CLOSE GETSTRATEGY_ROUTING_CURSOR<br />
DEALLOCATE GETSTRATEGY_ROUTING_CURSOR</p>
<p>EXEC CC_BTCC_APPEND_TO_STRATEGY_XML @tmpxml out,N&#8221;,@ID<br />
/*=======  STRATEGY Time Based Routing ======*/	</p>
<p>END</p>
<p>When i am executing this SP i am getting commands completed successfully. But some collation error is in this SP.</p>
<p>In this SP how can i find the collation error is occurs or not.<br />
Help me friends.</p>
<p>Waiting for good reply..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-10388</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Fri, 31 Aug 2007 10:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/#comment-10388</guid>
		<description><![CDATA[Saravanan,

You can use Row_Number() function to perform your request.

http://search.pinaldave.com/?domains=blog.sqlauthority.com&amp;q=row_number%28%29&amp;sitesearch=blog.sqlauthority.com&amp;sa=Google+Search&amp;client=pub-6502880871475562&amp;forid=1&amp;ie=ISO-8859-1&amp;oe=ISO-8859-1&amp;cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A2266cc%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A2266cc%3BLC%3A2266cc%3BT%3A000000%3BGFNT%3A336699%3BGIMP%3A336699%3BFORID%3A11&amp;hl=en

Regards,
Pinal Dave ( http://www.SQLAuthority.com )]]></description>
		<content:encoded><![CDATA[<p>Saravanan,</p>
<p>You can use Row_Number() function to perform your request.</p>
<p><a href="http://search.pinaldave.com/?domains=blog.sqlauthority.com&#038;q=row_number%28%29&#038;sitesearch=blog.sqlauthority.com&#038;sa=Google+Search&#038;client=pub-6502880871475562&#038;forid=1&#038;ie=ISO-8859-1&#038;oe=ISO-8859-1&#038;cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A2266cc%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A2266cc%3BLC%3A2266cc%3BT%3A000000%3BGFNT%3A336699%3BGIMP%3A336699%3BFORID%3A11&#038;hl=en" rel="nofollow">http://search.pinaldave.com/?domains=blog.sqlauthority.com&#038;q=row_number%28%29&#038;sitesearch=blog.sqlauthority.com&#038;sa=Google+Search&#038;client=pub-6502880871475562&#038;forid=1&#038;ie=ISO-8859-1&#038;oe=ISO-8859-1&#038;cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A2266cc%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A2266cc%3BLC%3A2266cc%3BT%3A000000%3BGFNT%3A336699%3BGIMP%3A336699%3BFORID%3A11&#038;hl=en</a></p>
<p>Regards,<br />
Pinal Dave ( <a href="http://www.SQLAuthority.com" rel="nofollow">http://www.SQLAuthority.com</a> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
