﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / Collation / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 13:22:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>it also gets a lot more difficult if you have any constraints on any of those 50 columns...unique constraints, indexes, defaults, etc could prevent the ALTER command from completing.... all those constraints have to be dropped first, then change the collation, and then recreate those indexes and constraints after you change the collation.</description><pubDate>Tue, 04 Dec 2012 06:52:49 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>Yes that is correct</description><pubDate>Tue, 04 Dec 2012 06:42:02 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>if i have 50 columns in a table of datatype varchar then do i need to manually change the collation using ALTER for each column..:w00t:</description><pubDate>Tue, 04 Dec 2012 06:36:28 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>My bad, you cant change the table collation, that should of been the database level, to alter a table you can change column collationsDrop all indexes on any columns which are string data typesChange all existing columns using ALTER TABLE .... ALTER COLUMN ... COLLATE ...Re-create all indexes.</description><pubDate>Tue, 04 Dec 2012 05:02:38 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>@anthony,how can we change the collation of a table?</description><pubDate>Tue, 04 Dec 2012 04:54:34 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>@kapil_kknumeric columns dont have a collation.@memymastacollation can be changed at the server, database or column level depending what you want to do</description><pubDate>Tue, 04 Dec 2012 04:53:24 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>when i tried to change collation for a column I got this error--Expression type tinyint is invalid for COLLATE clause.</description><pubDate>Tue, 04 Dec 2012 04:46:31 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>Collations cannot be changed specifically for columns, they effect the whole DB.But you can temporarily change them like this:[code="sql"]SELECT top 10  firstname COLLATE SQL_Latin1_General_CP1_CI_AS FROM users [/code]</description><pubDate>Tue, 04 Dec 2012 04:42:47 GMT</pubDate><dc:creator>memymasta</dc:creator></item><item><title>Collation</title><link>http://www.sqlservercentral.com/Forums/Topic1392366-392-1.aspx</link><description>How can I change the collation for all columns of a table?</description><pubDate>Tue, 04 Dec 2012 04:30:53 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item></channel></rss>