<?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>Quarksoft\&#039;s Notes &#187; sql server 2005</title>
	<atom:link href="http://blog.quarksoft.com/tag/sql-server-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quarksoft.com</link>
	<description>Just another Usefulnotes.com weblog</description>
	<lastBuildDate>Wed, 03 Mar 2010 16:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Creating Insert Statements for SQL Server</title>
		<link>http://blog.quarksoft.com/2009/07/02/creating-insert-statements-for-sql-server/</link>
		<comments>http://blog.quarksoft.com/2009/07/02/creating-insert-statements-for-sql-server/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 11:46:55 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[David Finkelstein]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[quarksoft]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/?p=76</guid>
		<description><![CDATA[Ran across an interesting approach to generating insert statements for SQL Server 2005 (and other variants).  If uses a less well known function called master.dbo.fn_varbintohexstr. The approach that was taken was to use the fn_varbintohexstr function to encode the data so you did not need to use cursors or any fancy parsing to handle unicode [...]]]></description>
			<content:encoded><![CDATA[<p>Ran across an interesting approach to <a href="http://www.sqlservercentral.com/articles/T-SQL/66987/">generating insert statements</a> for SQL Server 2005 (and other variants).  If uses a less well known function called <strong>master.dbo.fn_varbintohexstr. </strong>The approach that was taken was to use the fn_varbintohexstr function to encode the data so you did not need to use cursors or any fancy parsing to handle unicode and quotes in the generated insert statements.  I thought it was a bit clever.</p>
<p>Note: you might need to register at SQLServerCentral.com to gain access to the site to read the above linked article.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/07/02/creating-insert-statements-for-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating Age in T-SQL</title>
		<link>http://blog.quarksoft.com/2009/03/13/calculating-age-in-t-sql/</link>
		<comments>http://blog.quarksoft.com/2009/03/13/calculating-age-in-t-sql/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 13:17:40 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[David Finkelstein]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[quarksoft]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/?p=50</guid>
		<description><![CDATA[Here&#8217;s a decent article on calculating the age of a person (or anything else) written by Lynn Pettis.  Discusses some pitfalls with leap years.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a decent article on <a href="http://www.sqlservercentral.com/articles/T-SQL/63351/">calculating the age</a> of a person (or anything else) written by Lynn Pettis.  Discusses some pitfalls with leap years.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/03/13/calculating-age-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using and Managing SQL Server Aliases</title>
		<link>http://blog.quarksoft.com/2009/03/10/using-and-managing-sql-server-aliases/</link>
		<comments>http://blog.quarksoft.com/2009/03/10/using-and-managing-sql-server-aliases/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 15:18:42 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/?p=48</guid>
		<description><![CDATA[I know that not many people I have met in my SQL Server experience have used SQL Aliases.  In many ways it is one of the most useful features of SQL Server.   Roman Rehak wrote a great article about SQL Server Aliases.  You have to be registered to see the full article, but some of [...]]]></description>
			<content:encoded><![CDATA[<p>I know that not many people I have met in my SQL Server experience have used SQL Aliases.  In many ways it is one of the most useful features of SQL Server.   Roman Rehak wrote a great article about <a href="http://http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1281621_mem1,00.html#" target="_blank">SQL Server Aliases</a>.  You have to be registered to see the full article, but some of the highlights are discussed below.</p>
<p>Creating an alias all depends on which client tools are installed on the computer you are using.  Here are the common methods for running the SQL Client Configuration Tool:</p>
<ul>
<li><span class="a3">If SQL Server 2000 client tools are installed, use the SQL Client Network Utility and select the <em>Alias</em> tab.</span></li>
<li><span class="a3">If SQL Server 2005 client tools are installed, use the SQL Server Configuration Manager and expand the SQL Native Client Configuration node to find the node for <em>Aliases</em>.<br />
</span></li>
<li><span class="a3">If you do not have any client tools installed, you can still get at the Client Network Utility by executing &#8220;cliconfg&#8221; from any command prompt.</span></li>
</ul>
<p>Aliases are useful in the following scenarios:</p>
<ul>
<li>Create an alias that is a friendlier name than the server name itself.</li>
<li>In a Development/QA/Production environment.  Using aliases allow you to keep the code base across your servers the same without having to change source code (sort of related to the last bullet).</li>
<li>Enforce the use of a particular protocol.  If you get the &#8220;<span class="a3">Cannot generate SSPI context&#8221; error you can try creating an alias to force the use of the Named Pipes.<br />
</span></li>
<li>A distributed environment with multiple servers that reference each other using the Linked Servers feature.  You can define the linked servers with the aliases instead of the actual names.  This makes future moving of databases and such much easier since you will not need to chnage the linked server names in your code.</li>
<li><span class="a3">In a high-availability environment to allow you to quickly change the server without changing all your code (such as web applications and such).</span></li>
</ul>
<p>I&#8217;m sure there are other useful reasons to use aliases, but that covers a few of them that show the power of the alias function.</p>
<p>If you have any other good ideas, please comment on the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2009/03/10/using-and-managing-sql-server-aliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pivots with Dynamic Columns in SQL Server 2005</title>
		<link>http://blog.quarksoft.com/2008/01/07/pivots-with-dynamic-columns-in-sql-server-2005/</link>
		<comments>http://blog.quarksoft.com/2008/01/07/pivots-with-dynamic-columns-in-sql-server-2005/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 19:41:42 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[pivot]]></category>
		<category><![CDATA[quarksoft]]></category>
		<category><![CDATA[simple-talk.com]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://blog.quarksoft.com/2008/01/07/pivots-with-dynamic-columns-in-sql-server-2005/</guid>
		<description><![CDATA[Found a great article at www.simple-talk.com which described how to create pivot queries with dynamic column names.  It seems simple at first until you try to adjust your columns manually and then discover that you really need to implement some special code to accomplish the task.  The article Pivots with Dynamic Columns in SQL Server 2005 provides [...]]]></description>
			<content:encoded><![CDATA[<p>Found a great article at <a href="http://www.simple-talk.com/">www.simple-talk.com</a> which described how to create pivot queries with dynamic column names.  It seems simple at first until you try to adjust your columns manually and then discover that you really need to implement some special code to accomplish the task.  The article <a href="http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx">Pivots with Dynamic Columns in SQL Server 2005</a> provides just the right information to accomplish the task and saved me a ton of time trying to create the process on my own.  Great job Andras.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quarksoft.com/2008/01/07/pivots-with-dynamic-columns-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
