<?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; Change Collation of Database Column &#8211; T-SQL Script</title>
	<atom:link href="http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 22 May 2013 19:03:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: IndrekS</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-470517</link>
		<dc:creator><![CDATA[IndrekS]]></dc:creator>
		<pubDate>Tue, 07 May 2013 07:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-470517</guid>
		<description><![CDATA[eabidi syntax without CURSOR

DECLARE @OldCollation VARCHAR(100), @NewCollation VARCHAR(100)
SELECT @OldCollation = &#039;SQL_Latin1_General_CP1_CI_AS&#039;,
	@NewCollation=&#039;Estonian_ci_as&#039;;
WITH XChange (XColumn,XTable,XType,XLen)
	as(
SELECT c.NAME ,
	&#039;[&#039; + SCHEMA_NAME(schema_id) + &#039;].[&#039; + t.NAME + &#039;]&#039; ,
	c.SYSTEM_type_id ,
	c.max_length
FROM sys.columns c
JOIN sys.tables t ON c.OBJECT_ID = t.OBJECT_ID
WHERE 
	collation_name=@OldCollation
	AND t.TYPE = &#039;u&#039;)
SELECT &#039;ALTER TABLE &#039; + XTable
	+ &#039; alter column [&#039; + XColumn + &#039;] &#039;
	+ CAST(TYPE_NAME(XType) AS VARCHAR(20)) + &#039;(&#039;
	+ CAST(XLen AS VARCHAR(10)) + &#039;) collate &#039;
	+ @NewCollation + &#039;;&#039;
FROM XChange
where XType not in (35,99)
	and XLen&gt;0;]]></description>
		<content:encoded><![CDATA[<p>eabidi syntax without CURSOR</p>
<p>DECLARE @OldCollation VARCHAR(100), @NewCollation VARCHAR(100)<br />
SELECT @OldCollation = &#8216;SQL_Latin1_General_CP1_CI_AS&#8217;,<br />
	@NewCollation=&#8217;Estonian_ci_as&#8217;;<br />
WITH XChange (XColumn,XTable,XType,XLen)<br />
	as(<br />
SELECT c.NAME ,<br />
	&#8216;[' + SCHEMA_NAME(schema_id) + '].[' + t.NAME + ']&#8216; ,<br />
	c.SYSTEM_type_id ,<br />
	c.max_length<br />
FROM sys.columns c<br />
JOIN sys.tables t ON c.OBJECT_ID = t.OBJECT_ID<br />
WHERE<br />
	collation_name=@OldCollation<br />
	AND t.TYPE = &#8216;u&#8217;)<br />
SELECT &#8216;ALTER TABLE &#8216; + XTable<br />
	+ &#8216; alter column [' + XColumn + '] &#8216;<br />
	+ CAST(TYPE_NAME(XType) AS VARCHAR(20)) + &#8216;(&#8216;<br />
	+ CAST(XLen AS VARCHAR(10)) + &#8216;) collate &#8216;<br />
	+ @NewCollation + &#8216;;&#8217;<br />
FROM XChange<br />
where XType not in (35,99)<br />
	and XLen&gt;0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eabidi</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-418161</link>
		<dc:creator><![CDATA[eabidi]]></dc:creator>
		<pubDate>Tue, 05 Feb 2013 15:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-418161</guid>
		<description><![CDATA[Hi Pinal, nice post as always. I have personally made a little script to help me understanding which columns i have to change in order to maintain the correct collation on a Database.
Here&#039;s the script if anyone needs something like  this.
NOTE: it doesn&#039;t do nothing, but just prints the T-Sql instructions that allow to change the collation, this because based on my experience, i prefer to double check a couple of times before messing up with DB Settings :)

DECLARE @collationType VARCHAR(100)

SELECT  @collationType = &#039;Latin1_General_CI_AS&#039;

DECLARE collationToChangeColumns CURSOR
FOR
    SELECT  colonne.NAME ,
            &#039;[&#039; + SCHEMA_NAME(schema_id) + &#039;].[&#039; + tabelle.NAME + &#039;]&#039; ,
            colonne.SYSTEM_type_id ,
            colonne.max_length
    FROM    sys.columns colonne
            JOIN sys.tables tabelle
            ON colonne.OBJECT_ID = tabelle.OBJECT_ID
    WHERE   collation_name  @collationType
            AND tabelle.TYPE = &#039;u&#039;


DECLARE @tableName AS VARCHAR(100)
DECLARE @columnName AS VARCHAR(100)
DECLARE @typeID AS INT
DECLARE @maxLength AS INT
DECLARE @sqlString AS NVARCHAR(4000)

OPEN collationToChangeColumns
FETCH collationToChangeColumns INTO @columnName, @tableName, @typeID, @maxLength
WHILE @@FETCH_STATUS  -1 
    BEGIN
        IF @typeID NOT IN ( 35, 99 ) 
            BEGIN   
                IF @maxLength &gt; 0 
                    BEGIN 
                        SET @sqlString = &#039;ALTER TABLE &#039; + @tableName
                            + &#039; alter column [&#039; + @columnName + &#039;] &#039;
                            + CAST(TYPE_NAME(@typeID) AS VARCHAR(20)) + &#039;(&#039;
                            + CAST(@maxLength AS VARCHAR(10)) + &#039;) collate &#039;
                            + @collationType + &#039;;&#039;
                        PRINT @sqlString
                    END
            END 
        FETCH collationToChangeColumns INTO @columnName, @tableName, @typeID,
            @maxLength
	
    END
CLOSE collationToChangeColumns
DEALLOCATE collationToChangeColumns]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal, nice post as always. I have personally made a little script to help me understanding which columns i have to change in order to maintain the correct collation on a Database.<br />
Here&#8217;s the script if anyone needs something like  this.<br />
NOTE: it doesn&#8217;t do nothing, but just prints the T-Sql instructions that allow to change the collation, this because based on my experience, i prefer to double check a couple of times before messing up with DB Settings :)</p>
<p>DECLARE @collationType VARCHAR(100)</p>
<p>SELECT  @collationType = &#8216;Latin1_General_CI_AS&#8217;</p>
<p>DECLARE collationToChangeColumns CURSOR<br />
FOR<br />
    SELECT  colonne.NAME ,<br />
            &#8216;[' + SCHEMA_NAME(schema_id) + '].[' + tabelle.NAME + ']&#8216; ,<br />
            colonne.SYSTEM_type_id ,<br />
            colonne.max_length<br />
    FROM    sys.columns colonne<br />
            JOIN sys.tables tabelle<br />
            ON colonne.OBJECT_ID = tabelle.OBJECT_ID<br />
    WHERE   collation_name  @collationType<br />
            AND tabelle.TYPE = &#8216;u&#8217;</p>
<p>DECLARE @tableName AS VARCHAR(100)<br />
DECLARE @columnName AS VARCHAR(100)<br />
DECLARE @typeID AS INT<br />
DECLARE @maxLength AS INT<br />
DECLARE @sqlString AS NVARCHAR(4000)</p>
<p>OPEN collationToChangeColumns<br />
FETCH collationToChangeColumns INTO @columnName, @tableName, @typeID, @maxLength<br />
WHILE @@FETCH_STATUS  -1<br />
    BEGIN<br />
        IF @typeID NOT IN ( 35, 99 )<br />
            BEGIN<br />
                IF @maxLength &gt; 0<br />
                    BEGIN<br />
                        SET @sqlString = &#8216;ALTER TABLE &#8216; + @tableName<br />
                            + &#8216; alter column [' + @columnName + '] &#8216;<br />
                            + CAST(TYPE_NAME(@typeID) AS VARCHAR(20)) + &#8216;(&#8216;<br />
                            + CAST(@maxLength AS VARCHAR(10)) + &#8216;) collate &#8216;<br />
                            + @collationType + &#8216;;&#8217;<br />
                        PRINT @sqlString<br />
                    END<br />
            END<br />
        FETCH collationToChangeColumns INTO @columnName, @tableName, @typeID,<br />
            @maxLength</p>
<p>    END<br />
CLOSE collationToChangeColumns<br />
DEALLOCATE collationToChangeColumns</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopi</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-397485</link>
		<dc:creator><![CDATA[Gopi]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 04:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-397485</guid>
		<description><![CDATA[how to restore the database with out mdf,and log files]]></description>
		<content:encoded><![CDATA[<p>how to restore the database with out mdf,and log files</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopi</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-397455</link>
		<dc:creator><![CDATA[Gopi]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 03:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-397455</guid>
		<description><![CDATA[hi sir this is gopi
  while intalling sql server 2005 i did not install sql server profiler now i want that profiler it is possible sir reply me]]></description>
		<content:encoded><![CDATA[<p>hi sir this is gopi<br />
  while intalling sql server 2005 i did not install sql server profiler now i want that profiler it is possible sir reply me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-397386</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 01:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-397386</guid>
		<description><![CDATA[[...] Change Collation of Database Column – T-SQL Script Earlier in the same week, I wrote about Find Collation of Database and Table Column Using T-SQL and I had received some good comments and one particular question was about how to change collation of database. It is quite simple to do so. In this quick script I have attempted to solve the same problem. Now here is the question back to you &#8211; is the trick mentioned in the blog efficient? [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Change Collation of Database Column – T-SQL Script Earlier in the same week, I wrote about Find Collation of Database and Table Column Using T-SQL and I had received some good comments and one particular question was about how to change collation of database. It is quite simple to do so. In this quick script I have attempted to solve the same problem. Now here is the question back to you &#8211; is the trick mentioned in the blog efficient? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Effect of Collation on Resultset &#8211; SQL in Sixty Seconds #026 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-350720</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Effect of Collation on Resultset &#8211; SQL in Sixty Seconds #026 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 19 Sep 2012 01:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-350720</guid>
		<description><![CDATA[[...] Change Collation of Database Column – T-SQL Script [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Change Collation of Database Column – T-SQL Script [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxx</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-279767</link>
		<dc:creator><![CDATA[xxx]]></dc:creator>
		<pubDate>Thu, 26 Apr 2012 11:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-279767</guid>
		<description><![CDATA[I want to have all languages in my tables in a database. Currently when i insert the arabic characters, it is getting inserted as &quot;?&quot;. Let me know what collation to be used for all languages , for all tables and its syntax.]]></description>
		<content:encoded><![CDATA[<p>I want to have all languages in my tables in a database. Currently when i insert the arabic characters, it is getting inserted as &#8220;?&#8221;. Let me know what collation to be used for all languages , for all tables and its syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khanh Nguyen</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-264759</link>
		<dc:creator><![CDATA[Khanh Nguyen]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 02:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-264759</guid>
		<description><![CDATA[Thank! Good articles]]></description>
		<content:encoded><![CDATA[<p>Thank! Good articles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeev Singh</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-221907</link>
		<dc:creator><![CDATA[Sanjeev Singh]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 07:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-221907</guid>
		<description><![CDATA[Nice Articles.]]></description>
		<content:encoded><![CDATA[<p>Nice Articles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-151033</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Wed, 27 Jul 2011 11:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-151033</guid>
		<description><![CDATA[AnilKumar:
Collations do not translate data from one language to another. They specify sort-order definitions. If the plugin you mention is capable of language translations, then you will need to consult its documentation.

Sorry I cannot help you further.]]></description>
		<content:encoded><![CDATA[<p>AnilKumar:<br />
Collations do not translate data from one language to another. They specify sort-order definitions. If the plugin you mention is capable of language translations, then you will need to consult its documentation.</p>
<p>Sorry I cannot help you further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AnilKumar Jonnala</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-150997</link>
		<dc:creator><![CDATA[AnilKumar Jonnala]]></dc:creator>
		<pubDate>Wed, 27 Jul 2011 08:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-150997</guid>
		<description><![CDATA[Hi Brain ,

Data stored in Sql Server 2005
in a table the Column Consists Data in  iscii Format how 
Can i Show that data in specifeid Language


The Data was inserted using CDAC iplugin the Language Used is Telugu
Waiting..;
For Reply
Data is visible in this  format ]]></description>
		<content:encoded><![CDATA[<p>Hi Brain ,</p>
<p>Data stored in Sql Server 2005<br />
in a table the Column Consists Data in  iscii Format how<br />
Can i Show that data in specifeid Language</p>
<p>The Data was inserted using CDAC iplugin the Language Used is Telugu<br />
Waiting..;<br />
For Reply<br />
Data is visible in this  format </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AnilKumar Jonnala</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-150996</link>
		<dc:creator><![CDATA[AnilKumar Jonnala]]></dc:creator>
		<pubDate>Wed, 27 Jul 2011 08:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-150996</guid>
		<description><![CDATA[Hi Brain ,

Data stored in Sql Server 2005
in a table the Column Consists Data in  iscii Format how 
Can i Show that data in specifeid Language


The Data was inserted using CDAC iplugin the Language Used is Telugu
Waiting..;
For Reply]]></description>
		<content:encoded><![CDATA[<p>Hi Brain ,</p>
<p>Data stored in Sql Server 2005<br />
in a table the Column Consists Data in  iscii Format how<br />
Can i Show that data in specifeid Language</p>
<p>The Data was inserted using CDAC iplugin the Language Used is Telugu<br />
Waiting..;<br />
For Reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-143070</link>
		<dc:creator><![CDATA[vijay]]></dc:creator>
		<pubDate>Wed, 22 Jun 2011 23:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-143070</guid>
		<description><![CDATA[great, thanks and thanks google for showing this on top]]></description>
		<content:encoded><![CDATA[<p>great, thanks and thanks google for showing this on top</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-104463</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Thu, 09 Dec 2010 16:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-104463</guid>
		<description><![CDATA[Kumar,

This is a very complex process that, depending on the size of your database, could be impossible to do manually.  Here&#039;s what needs to be done:


1. Identify all the columns which have incorrect collation values.
2. Identify all objects bound to above columns, including indexes, keys, checks and UDF’s,
3. Script out all of the above object DDL.
4. Drop all of the objects.
5. Update all the columns with the correct collation
6. Recreate all of the dropped objects using the DDL generated in step 3

Fortunately, I&#039;ve written a set of scripts to do all this and have them documented and published here on the SQLAuthority site.

The following page should provide you with everything you need.
http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>Kumar,</p>
<p>This is a very complex process that, depending on the size of your database, could be impossible to do manually.  Here&#8217;s what needs to be done:</p>
<p>1. Identify all the columns which have incorrect collation values.<br />
2. Identify all objects bound to above columns, including indexes, keys, checks and UDF’s,<br />
3. Script out all of the above object DDL.<br />
4. Drop all of the objects.<br />
5. Update all the columns with the correct collation<br />
6. Recreate all of the dropped objects using the DDL generated in step 3</p>
<p>Fortunately, I&#8217;ve written a set of scripts to do all this and have them documented and published here on the SQLAuthority site.</p>
<p>The following page should provide you with everything you need.<br />
<a href="http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/" rel="nofollow">http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/</a></p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-104443</link>
		<dc:creator><![CDATA[Kumar]]></dc:creator>
		<pubDate>Thu, 09 Dec 2010 11:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-104443</guid>
		<description><![CDATA[If i change collation for entire database,it changed but table level collation not effected.Please suggest me to get the collation change in all tables in that database.
I tried collation change using 

&#039;alter database testCollationChange
collate SQL_Latin1_General_CP1_CI_AS &#039;


Is anyother script?]]></description>
		<content:encoded><![CDATA[<p>If i change collation for entire database,it changed but table level collation not effected.Please suggest me to get the collation change in all tables in that database.<br />
I tried collation change using </p>
<p>&#8216;alter database testCollationChange<br />
collate SQL_Latin1_General_CP1_CI_AS &#8216;</p>
<p>Is anyother script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-101733</link>
		<dc:creator><![CDATA[vijay]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 20:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-101733</guid>
		<description><![CDATA[Thanks Pinal]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Godfrey</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-100014</link>
		<dc:creator><![CDATA[Paul Godfrey]]></dc:creator>
		<pubDate>Mon, 15 Nov 2010 14:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-100014</guid>
		<description><![CDATA[Thanks, very very useful and It Works !]]></description>
		<content:encoded><![CDATA[<p>Thanks, very very useful and It Works !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FAC</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-97477</link>
		<dc:creator><![CDATA[FAC]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 01:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-97477</guid>
		<description><![CDATA[Great! that did it

both columns are character date type

Thanks a lot Brian!]]></description>
		<content:encoded><![CDATA[<p>Great! that did it</p>
<p>both columns are character date type</p>
<p>Thanks a lot Brian!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-97439</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 20:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-97439</guid>
		<description><![CDATA[FAC:
In the above query, are the fields ITEMNMBR and productnumber of a numeric type?  The COLLATE clause will only work with character data types: char, nchar, varchar, nvarchar, text, ntext

If they are string based types, try the following:

SELECT ITEMNMBR
FROM IV00101 i
    LEFT JOIN CRMLINKED.CRMDB.dbo.ProductBase p
    ON p.productnumber COLLATE SQL_Latin1_General_CP1_CI_AS = i.ITEMNMBR
WHERE p.productnumber IS NULL]]></description>
		<content:encoded><![CDATA[<p>FAC:<br />
In the above query, are the fields ITEMNMBR and productnumber of a numeric type?  The COLLATE clause will only work with character data types: char, nchar, varchar, nvarchar, text, ntext</p>
<p>If they are string based types, try the following:</p>
<p>SELECT ITEMNMBR<br />
FROM IV00101 i<br />
    LEFT JOIN CRMLINKED.CRMDB.dbo.ProductBase p<br />
    ON p.productnumber COLLATE SQL_Latin1_General_CP1_CI_AS = i.ITEMNMBR<br />
WHERE p.productnumber IS NULL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FAC</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-97415</link>
		<dc:creator><![CDATA[FAC]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 17:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-97415</guid>
		<description><![CDATA[Hi Brian
thanks for your response

i modified the query like this 

SELECT ITEMNMBR
FROM IV00101
WHERE 
ITEMNMBR NOT IN ( select productnumber from CRMLINKED.CRMDB.dbo.ProductBase where productnumber COLLATE SQL_Latin1_General_CP1_CI_AS )

but still got the error
Cannot resolve the collation conflict between &quot;Modern_Spanish_CI_AI&quot; and &quot;SQL_Latin1_General_CP1_CI_AS&quot; in the equal to operation.

any other ideas please

thanks a lot]]></description>
		<content:encoded><![CDATA[<p>Hi Brian<br />
thanks for your response</p>
<p>i modified the query like this </p>
<p>SELECT ITEMNMBR<br />
FROM IV00101<br />
WHERE<br />
ITEMNMBR NOT IN ( select productnumber from CRMLINKED.CRMDB.dbo.ProductBase where productnumber COLLATE SQL_Latin1_General_CP1_CI_AS )</p>
<p>but still got the error<br />
Cannot resolve the collation conflict between &#8220;Modern_Spanish_CI_AI&#8221; and &#8220;SQL_Latin1_General_CP1_CI_AS&#8221; in the equal to operation.</p>
<p>any other ideas please</p>
<p>thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-97407</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 17:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-97407</guid>
		<description><![CDATA[FAC,
Is the COLLATE statement inside or outside the parentheses?  It should be inside.
If that doesn&#039;t fix it, try troubleshooting by minimizing your select criteria.  Try just a single column from the GP table.]]></description>
		<content:encoded><![CDATA[<p>FAC,<br />
Is the COLLATE statement inside or outside the parentheses?  It should be inside.<br />
If that doesn&#8217;t fix it, try troubleshooting by minimizing your select criteria.  Try just a single column from the GP table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FAC</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-97265</link>
		<dc:creator><![CDATA[FAC]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 00:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-97265</guid>
		<description><![CDATA[Hi
please i got a problem, i got 2 apps MS Dynamics CRM and MS Dynamics GP
but CRM is in Modern_Spanish_CI_AI 
and GP in SQL_Latin1_General_CP1_CI_AS
i want to do a query like this
SELECT * FROM TABLE_IN_GP WHERE ID NOT IN ( SELECT ID FROM LINKEDSERVER.CRM_DB.dbo.TABLE_IN_CRM )

but i got this error
Cannot resolve the collation conflict between &quot;Modern_Spanish_CI_AI&quot; and &quot;SQL_Latin1_General_CP1_CI_AS&quot; in the equal to operation.

i even put at the end   COLLATE SQL_Latin1_General_CP1_CI_AS

but i still got the same error
it&#039;s not posible to change the collations of the DBs

could you help me please

thanks a lot]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
please i got a problem, i got 2 apps MS Dynamics CRM and MS Dynamics GP<br />
but CRM is in Modern_Spanish_CI_AI<br />
and GP in SQL_Latin1_General_CP1_CI_AS<br />
i want to do a query like this<br />
SELECT * FROM TABLE_IN_GP WHERE ID NOT IN ( SELECT ID FROM LINKEDSERVER.CRM_DB.dbo.TABLE_IN_CRM )</p>
<p>but i got this error<br />
Cannot resolve the collation conflict between &#8220;Modern_Spanish_CI_AI&#8221; and &#8220;SQL_Latin1_General_CP1_CI_AS&#8221; in the equal to operation.</p>
<p>i even put at the end   COLLATE SQL_Latin1_General_CP1_CI_AS</p>
<p>but i still got the same error<br />
it&#8217;s not posible to change the collations of the DBs</p>
<p>could you help me please</p>
<p>thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-82221</link>
		<dc:creator><![CDATA[Gordon]]></dc:creator>
		<pubDate>Thu, 29 Jul 2010 13:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-82221</guid>
		<description><![CDATA[Hi,

Is it possible to set a collation sequence on a schema so all tables within that schema are case-sensitive, whereas rest of database is case-insensitive?

Cheers
Gordon]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is it possible to set a collation sequence on a schema so all tables within that schema are case-sensitive, whereas rest of database is case-insensitive?</p>
<p>Cheers<br />
Gordon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-56798</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Mon, 19 Oct 2009 21:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-56798</guid>
		<description><![CDATA[Finally...
Sorry it&#039;s taken so long for me to get back around to this.  But, good news... I finally did.  I&#039;ve an article that details the work, and you can also download all of the scripts.

There are a couple of edits you&#039;ll probably need to make to the individual scripts, for example, the collation you intend to use.  The scripts have Latin1_General_CI_AS hard-coded.

Read all the accompanying documentation.  Hopefully it will answer any questions you have about how to implement these.

And of course, if you have additional questions, my email is posted in the article.

Here it is...  Enjoy.

Brian

http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/]]></description>
		<content:encoded><![CDATA[<p>Finally&#8230;<br />
Sorry it&#8217;s taken so long for me to get back around to this.  But, good news&#8230; I finally did.  I&#8217;ve an article that details the work, and you can also download all of the scripts.</p>
<p>There are a couple of edits you&#8217;ll probably need to make to the individual scripts, for example, the collation you intend to use.  The scripts have Latin1_General_CI_AS hard-coded.</p>
<p>Read all the accompanying documentation.  Hopefully it will answer any questions you have about how to implement these.</p>
<p>And of course, if you have additional questions, my email is posted in the article.</p>
<p>Here it is&#8230;  Enjoy.</p>
<p>Brian</p>
<p><a href="http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/" rel="nofollow">http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2008/12/20/sql-server-change-collation-of-database-column-t-sql-script/#comment-56731</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Thu, 15 Oct 2009 16:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1794#comment-56731</guid>
		<description><![CDATA[Hello again.
Apologies for this taking as much time as it did to prepare, but I now have all of the documentation ready.  Note, this is not a click-bang-done task.  It&#039;s a series of scripts that generate DDL which must be executed against the target machines.  It uses DMO via OLE, so make sure your instances are not disabling the sp_oaCreate, sp_oaMethod, etc SP&#039;s.

Unfortunately, the documentation is only from my POV, and has NOT been beta tested against the masses.

I am emailing the article to Pinal Dave along with the scripts, but I have no control over when he has the time to review and publish.

For those of you that have urgent needs... you&#039;ve got to realize, your email address is NOT posted, nor is mine.  The back-end of Pinal&#039;s blog filters out email address in posts.  No way for me to know where to send.  So, if time is of the essence, be a little diligent and refer to my posts on March 2nd and September 12th.  My email address is obfuscated in the CONVERT() statement.  Just copy and paste it in a Q/A window.]]></description>
		<content:encoded><![CDATA[<p>Hello again.<br />
Apologies for this taking as much time as it did to prepare, but I now have all of the documentation ready.  Note, this is not a click-bang-done task.  It&#8217;s a series of scripts that generate DDL which must be executed against the target machines.  It uses DMO via OLE, so make sure your instances are not disabling the sp_oaCreate, sp_oaMethod, etc SP&#8217;s.</p>
<p>Unfortunately, the documentation is only from my POV, and has NOT been beta tested against the masses.</p>
<p>I am emailing the article to Pinal Dave along with the scripts, but I have no control over when he has the time to review and publish.</p>
<p>For those of you that have urgent needs&#8230; you&#8217;ve got to realize, your email address is NOT posted, nor is mine.  The back-end of Pinal&#8217;s blog filters out email address in posts.  No way for me to know where to send.  So, if time is of the essence, be a little diligent and refer to my posts on March 2nd and September 12th.  My email address is obfuscated in the CONVERT() statement.  Just copy and paste it in a Q/A window.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
