<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin M Sarmiento&gt;The Pains of Collation Settings &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/the-pains-of-collation-settings/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>&gt;The Pains of Collation Settings</title>
		<link>https://www.edwinmsarmiento.com/the-pains-of-collation-settings/</link>
		<comments>https://www.edwinmsarmiento.com/the-pains-of-collation-settings/#respond</comments>
		<pubDate>Sun, 07 Oct 2007 00:53:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2007/10/07/the-pains-of-collation-settings</guid>

				<description><![CDATA[&#62;Collation settings define the physical storage of character strings in SQL Server. It specifies the bit patterns that represent each character and the rules by which characters are sorted and compared. Collation settings have a direct impact on the databases if you configure them to use a different collation other than the default. When you [&#8230;]]]></description>
					<content:encoded><![CDATA[<p>&gt;<span style="font-family:arial;">Collation settings define the physical storage of character strings in SQL Server. It specifies the bit patterns that represent each character and the rules by which characters are sorted and compared. Collation settings have a direct impact on the databases if you configure them to use a different collation other than the default. When you configure a different collation setting during the installation, the rest of the databases (system and user-defined) will have this setting was their default when you create them unless you specifically defined something different from the default. One case I encountered was that the <strong><span style="font-size:85%;">tempdb</span></strong> database had a different collation setting compared to the user databases. This is because SQL Server was reinstalled and the <strong><span style="font-size:85%;">master</span></strong> and <strong><span style="font-size:85%;">msdb</span></strong> databases were restored from backup together with the user-defined databases. This made the collation settings of the entire database server back to their original configuration &#8211; well, almost. Since the <strong><span style="font-size:85%;">model</span></strong> database was not restored (and obviously, the <strong><span style="font-size:85%;">tempdb</span></strong> database does not require a backup), collation settings for the both would be the settings defined during re-installation. A script executed in one of the user-databases would require the use of the <strong><span style="font-size:85%;">tempdb</span></strong> and since they do not have the same collation settings, queries will fail unless the queries themselves take into account collation setting differences. The next best bet is to rebuild the <strong><span style="font-size:85%;">master</span></strong> database and change the collation settings and go through all the grueling task of restoring the system databases, provided that the user-defined databases are still intact. Well, another approach would be to simply restore the <strong><span style="font-size:85%;">model</span></strong> database if you have a backup (or simply look for the old MDF and LDF files if they are still working fine). This is because <strong><span style="font-size:85%;">tempdb</span></strong> database takes the settings of the <strong><span style="font-size:85%;">model</span></strong> database everytime SQL Server service starts. This will resolve collation problems should you encounter a similar case </span></p>
<div class="blogger-post-footer"><img width='1' height='1' src='' alt='' /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/the-pains-of-collation-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">18</post-id>	</item>
	</channel>
</rss>