<?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>GTTools.com &#187; SQL Server</title>
	<atom:link href="http://gttools.com/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://gttools.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Mar 2011 16:52:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to export your SQL Server table &#8211; the easy way</title>
		<link>http://gttools.com/2008/12/how-to-export-your-sql-server-table/</link>
		<comments>http://gttools.com/2008/12/how-to-export-your-sql-server-table/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 20:45:52 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[toolbox]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=32</guid>
		<description><![CDATA[Since I work as a consultant I always bring with me my &#8220;toolbox&#8221;. My latest addition to this toolbox is a SQL Server script created by Narayana Vyas Kondreddi He has created a script that let you export your data, &#8230; <a href="http://gttools.com/2008/12/how-to-export-your-sql-server-table/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I work as a consultant I always bring with me my &#8220;toolbox&#8221;. My latest addition to this toolbox is a SQL Server script created by <a href=" http://vyaskn.tripod.com" target="_blank">Narayana Vyas Kondreddi</a></p>
<p>He has created a script that let you export your data, by generating a insert script,  from a given table in a very easy way.</p>
<p>All you need to do to make is work is:</p>
<ul>
<li>Download the script and add the procedure called <strong>sp_generate_inserts<br />
</strong></li>
<li>Generate your insert script by calling: <strong>EXEC sp_generate_inserts &#8216;myTable&#8217;</strong></li>
</ul>
<p>The insert script will now be written to the output in query analyzer.</p>
<p>Please note that by default the query analyzer will only display the first 256 charachters from each line.<br />
You can change this setting from: <strong>Tools-&gt;Options-&gt;Query Result-&gt;SQL Server-&gt;Result to Text</strong>.</p>
<p>Maximum allowed value is 8192.</p>
<p>You can download the script here: <a title="http://vyaskn.tripod.com/code/generate_inserts_2005.txt" href="http://vyaskn.tripod.com/code/generate_inserts_2005.txt" target="_blank">http://vyaskn.tripod.com/code/generate_inserts_2005.txt</a>.</p>
<p>For more information on how to use the script and all the features check out this page: <a title="http://vyaskn.tripod.com/code.htm#inserts " href="http://vyaskn.tripod.com/code.htm#inserts " target="_blank">http://vyaskn.tripod.com/code.htm#inserts </a></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/12/how-to-export-your-sql-server-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change a column collation to the default database collation</title>
		<link>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/</link>
		<comments>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 22:05:31 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=26</guid>
		<description><![CDATA[If you for some reason needs to change the collation of a column in SQL Server to the default database collation, you can use the following syntax: ALTER TABLE &#60;table_name&#62; ALTER COLUMN &#60;column_name&#62; &#60;current_data_type&#62; COLLATE database_default Eg.: ALTER TABLE myTable &#8230; <a href="http://gttools.com/2008/11/change-column-collation-to-default-database-collation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you for some reason needs to change the collation of a column in SQL Server to the default database collation, you can use the following syntax:</p>
<p><span style="color: #3366ff;">ALTER TABLE </span><em>&lt;table_name&gt;</em> <span style="color: #3366ff;">ALTER COLUMN</span> <em>&lt;column_name&gt; &lt;current_data_type&gt;</em> <span style="color: #3366ff;">COLLATE </span>database_default</p>
<p>Eg.:</p>
<p><span style="color: #3366ff;">ALTER TABLE </span>myTable <span style="color: #3366ff;">ALTER COLUMN</span> myColumn <span style="color: #3366ff;">TEXT COLLATE </span>database_default</p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

