<?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>Paul Gu&#124;blog &#187; Database</title>
	<atom:link href="http://blog.paulgu.com/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.paulgu.com</link>
	<description>Sharing my world with the world</description>
	<lastBuildDate>Thu, 09 Feb 2012 04:47:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Date only in SQL</title>
		<link>http://blog.paulgu.com/database/date-only-in-sql/</link>
		<comments>http://blog.paulgu.com/database/date-only-in-sql/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 15:42:42 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2011/01/07/date-only-in-sql/</guid>
		<description><![CDATA[In many case, you might want to get the date only out of table with time, here is the simple way to achieve it: &#160; DATEADD(dd, 0, DATEDIFF(dd, 0, &#60;DateColumn&#62;)) = &#8217;2011-01-07&#8242; or DATEADD(dd, 0, DATEDIFF(dd, 0, GetDate())) = &#8217;2011-01-07&#8242;]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/date-only-in-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Leading Zeros from SQL Table</title>
		<link>http://blog.paulgu.com/database/remove-leading-zeros-from-sql-table/</link>
		<comments>http://blog.paulgu.com/database/remove-leading-zeros-from-sql-table/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 15:07:17 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2010/12/30/remove-leading-zeros-from-sql-table/</guid>
		<description><![CDATA[You might have a situation that you need to remove all leading zeros from one column in table, from now on, we call this column as “Amount”. There is simple way if this “Amount” is integer: SELECT CAST(Amount AS INT) as Amount FROM TableName However, in many cases, this “Amount” contains decimals, here is the [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/remove-leading-zeros-from-sql-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Local Temporary Table</title>
		<link>http://blog.paulgu.com/database/local-temporary-table/</link>
		<comments>http://blog.paulgu.com/database/local-temporary-table/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 12:55:51 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2009/06/11/local-temporary-table/</guid>
		<description><![CDATA[Here is a simple to create and drop temp tables: to think that ALL temp tables reside in tempdb database, not releated to the user database at all, and it’s same for Global temp tables (##temp) which is why this would work in any User database. IF OBJECT_ID(&#8216;tempdb.dbo.#tempTable&#8217;) IS NOT NULL &#160;&#160; DROP TABLE #tempTable [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/local-temporary-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BizTalk SQL Agent Jobs</title>
		<link>http://blog.paulgu.com/database/biztalk-sql-agent-jobs/</link>
		<comments>http://blog.paulgu.com/database/biztalk-sql-agent-jobs/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 14:09:38 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2009/02/10/biztalk-sql-agent-jobs/</guid>
		<description><![CDATA[Execution of the BizTalk Server SQL Agent jobs are crucial for managing the BizTalk Server databases and for maintaining optimal performance. The Backup BizTalk Server job is the only supported method to backup the BizTalk Server databases and requires that all of the BizTalk Server databases are configured to use the SQL Server full recovery [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/biztalk-sql-agent-jobs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Archiving and Purging the BizTalk Tracking Database</title>
		<link>http://blog.paulgu.com/database/archiving-and-purging-the-biztalk-tracking-database/</link>
		<comments>http://blog.paulgu.com/database/archiving-and-purging-the-biztalk-tracking-database/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 16:23:26 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2009/02/09/archiving-and-purging-the-biztalk-tracking-database/</guid>
		<description><![CDATA[As BizTalk Server processes more and more data on your system, the BizTalk Tracking (BizTalkDTADb) database continues to grow in size. Unchecked growth decreases system performance and may generate errors in the Tracking Data Decode Service (TDDS). In addition to general tracking data, tracked messages can also accumulate in the MessageBox database, causing poor disk [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/archiving-and-purging-the-biztalk-tracking-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Generate SSPI Context</title>
		<link>http://blog.paulgu.com/database/cannot-generate-sspi-context/</link>
		<comments>http://blog.paulgu.com/database/cannot-generate-sspi-context/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 20:02:21 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2008/10/08/cannot-generate-sspi-context/</guid>
		<description><![CDATA[This error is probably one of the most frustrating ones for the SQL Server database folks.&#160; MSFT has an excellent KB article that covers the details on how to fix this issue &#8211; KB 811889. It goes into the details of Kerberos and NTLM, registering and de-registering SPNs etc.. At one of the client sites, [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/cannot-generate-sspi-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting error in Enterprise Manager Taskpad view</title>
		<link>http://blog.paulgu.com/database/getting-error-in-enterprise-manager-taskpad-view/</link>
		<comments>http://blog.paulgu.com/database/getting-error-in-enterprise-manager-taskpad-view/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 12:59:42 +0000</pubDate>
		<dc:creator>Paul Gu</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.paulgu.com/2008/06/13/getting-error-in-enterprise-manager-taskpad-view/</guid>
		<description><![CDATA[I continue to get this error whenever i try to use the Taskpad view of adatabase in my SQL Server Entriprise Manager.&#8220;An Error has occurred in the script on this pageLine:&#160; 307Char:&#160; 2Error:&#160; Unspecified ErrorCode:&#160; 0URL: res://C:\Program Files\Microsoft SQL Server\80\Tools\Binn\Resources\1033\sqlmmc.rll/Tabs.html Do you want to continue running scripts on this page?&#8221; with Yes and No buttons. [...]]]></description>
		<wfw:commentRss>http://blog.paulgu.com/database/getting-error-in-enterprise-manager-taskpad-view/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

