<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dosql</title>
	
	<link>http://www.dosql.com/blog</link>
	<description>Database Design and Administration Blog for DB2, Oracle and Microsoft SQL Server</description>
	<lastBuildDate>Sun, 11 Apr 2010 06:39:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Dosql" /><feedburner:info uri="dosql" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>SQL Server Best Practices</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/TcatuBb1jfs/</link>
		<comments>http://www.dosql.com/blog/2010/04/sql-server-best-practices/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 06:39:24 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/?p=605</guid>
		<description>http://msdn.microsoft.com/en-us/sqlserver/bb671432.aspx
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/g9Ff__vJzzwxnS_PRJIoWchvxMg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g9Ff__vJzzwxnS_PRJIoWchvxMg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/g9Ff__vJzzwxnS_PRJIoWchvxMg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/g9Ff__vJzzwxnS_PRJIoWchvxMg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/TcatuBb1jfs" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/04/sql-server-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/04/sql-server-best-practices/</feedburner:origLink></item>
		<item>
		<title>Setup SQL trace to capture deadlock</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/q7ySMAlPawI/</link>
		<comments>http://www.dosql.com/blog/2010/04/setup-sql-trace-to-capture-deadlock/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 00:16:21 +0000</pubDate>
		<dc:creator>sales</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/?p=599</guid>
		<description>Steps to create a SQL trace for deadlock

Create a trace by using sp_trace_create.
Add events with sp_trace_setevent.
Set a filter with sp_trace_setfilter.
Start the trace with sp_trace_setstatus.
Stop the trace with sp_trace_setstatus.
Close the trace with sp_trace_setstatus.

&amp;#8211; Create a trace
declare @rc int
declare @TraceID int
declare @maxfilesize bigint = 5
exec @rc = sp_trace_create @TraceID output, 0, N&amp;#8217;C:\Temp\DeadlockTrace1&amp;#8242;, @maxfilesize, NULL
if (@rc = 0)
Begin
 &amp;#8211; Add [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/duReCnPyiXPLgB6dbXpuokDDfgI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/duReCnPyiXPLgB6dbXpuokDDfgI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/duReCnPyiXPLgB6dbXpuokDDfgI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/duReCnPyiXPLgB6dbXpuokDDfgI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/q7ySMAlPawI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/04/setup-sql-trace-to-capture-deadlock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/04/setup-sql-trace-to-capture-deadlock/</feedburner:origLink></item>
		<item>
		<title>Database Design Tip</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/m2lhnGMYZew/</link>
		<comments>http://www.dosql.com/blog/2010/04/database-design-tip/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 07:13:22 +0000</pubDate>
		<dc:creator>sales</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/2010/04/database-design-tip/</guid>
		<description> Start with solid logical and physical design
 Frequent select distinct or union serves as a warning that design may have issue
 Normalize database for OLTP
 Consider denormalization to reduce joins
 Be careful about denormalization, use as last resort
 nulls in fixed length column?
 One large database v.s. several smaller databases
 Partitioning large tables
 Leave format in field or remove format
 Design to reduce user contention
 Allow [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BClV42Bc9hyoLpnu7GWvJsjT3WE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BClV42Bc9hyoLpnu7GWvJsjT3WE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BClV42Bc9hyoLpnu7GWvJsjT3WE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BClV42Bc9hyoLpnu7GWvJsjT3WE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/m2lhnGMYZew" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/04/database-design-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/04/database-design-tip/</feedburner:origLink></item>
		<item>
		<title>SSIS calling stored procedure with uniqueidentifier data type parameter issue</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/Y9Rr5bx8fco/</link>
		<comments>http://www.dosql.com/blog/2010/04/ssis-calling-stored-procedure-with-uniqueidentifier-data-type-parameter-issue/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 06:27:57 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/2010/04/ssis-calling-stored-procedure-with-uniqueidentifier-data-type-parameter-issue/</guid>
		<description>When calling a SP to retrieve data set from SSIS designer, there is no uniqueidentifier data type to map the parameter of the SP. So I choose text data type instead, however the query designer can&amp;#8217;t execute with an &amp;#8220;error converting text to uniqueidentifier&amp;#8221; message. Not sure if this is a bug.
The walk around is [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-LayUOGkCcD-ALbB1gzZ43zAqB4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-LayUOGkCcD-ALbB1gzZ43zAqB4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-LayUOGkCcD-ALbB1gzZ43zAqB4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-LayUOGkCcD-ALbB1gzZ43zAqB4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/Y9Rr5bx8fco" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/04/ssis-calling-stored-procedure-with-uniqueidentifier-data-type-parameter-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/04/ssis-calling-stored-procedure-with-uniqueidentifier-data-type-parameter-issue/</feedburner:origLink></item>
		<item>
		<title>Log PerfMon to Database error</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/EdPav8n6gpw/</link>
		<comments>http://www.dosql.com/blog/2010/03/log-perfmon-to-database-error/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 21:18:44 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/?p=584</guid>
		<description>I tried to log PerfMon log to a data source, but I am getting an error.

This is found in Windows event log:
The description for Event ID 3042 from source Microsoft-Windows-PDH cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5gChU9gzs98U37NuUqRfwKlDg6g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5gChU9gzs98U37NuUqRfwKlDg6g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5gChU9gzs98U37NuUqRfwKlDg6g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5gChU9gzs98U37NuUqRfwKlDg6g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/EdPav8n6gpw" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/03/log-perfmon-to-database-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/03/log-perfmon-to-database-error/</feedburner:origLink></item>
		<item>
		<title>Find Unused Indexes in SQL Server Database</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/gnKRMNmZh9M/</link>
		<comments>http://www.dosql.com/blog/2010/03/find-unused-indexes-in-sql-server-database/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:44:15 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/2010/03/find-unused-indexes-in-sql-server-database/</guid>
		<description>Ever wondering if you indexes are been used at all? This script will tell you:
Select  row_number() Over (order by S.name, object_name(IUS.object_id),I.name) as UnusedIndex
 ,S.name as SchemaName
 ,object_name(IUS.object_id) as TableName
 ,I.name as IndexName
 ,I.index_id
From sys.dm_db_index_usage_stats IUS
Inner Join sys.indexes I
 on IUS.object_id = I.object_id And I.index_id = IUS.index_id
Inner Join sys.objects O
 on I.object_id = O.object_id
Inner Join [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ep7KWEFaJmlqWyK1sN8o56vc0Lc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ep7KWEFaJmlqWyK1sN8o56vc0Lc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ep7KWEFaJmlqWyK1sN8o56vc0Lc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ep7KWEFaJmlqWyK1sN8o56vc0Lc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/gnKRMNmZh9M" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/03/find-unused-indexes-in-sql-server-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/03/find-unused-indexes-in-sql-server-database/</feedburner:origLink></item>
		<item>
		<title>Travel plan for a long long while</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/nkerpoCDf7o/</link>
		<comments>http://www.dosql.com/blog/2010/03/travel-plan-for-a-long-long-while/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:03:03 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/2010/03/travel-plan-for-a-long-long-while/</guid>
		<description>Varadero, Cuba
Paris, France
London, UK


Create your own travel map or travel blog
Vacation rentals at TripAdvisor
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DhRBKvTpjq18FPgBf62DnUKJN3Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DhRBKvTpjq18FPgBf62DnUKJN3Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DhRBKvTpjq18FPgBf62DnUKJN3Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DhRBKvTpjq18FPgBf62DnUKJN3Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/nkerpoCDf7o" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/03/travel-plan-for-a-long-long-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/03/travel-plan-for-a-long-long-while/</feedburner:origLink></item>
		<item>
		<title>Office SharePoint Server Error: EventType ulsexception12, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 system.data, P5 2.0.0.0, P6 461ef1ad, P7 1999, P8 7, P9 constraintexception, P10 0000.</title>
		<link>http://feedproxy.google.com/~r/Dosql/~3/Dq2n2HaLgnE/</link>
		<comments>http://www.dosql.com/blog/2010/03/office-sharepoint-server-error-eventtype-ulsexception12-p1-w3wp-exe-p2-6-0-3790-3959-p3-45d6968e-p4-system-data-p5-2-0-0-0-p6-461ef1ad-p7-1999-p8-7-p9-constraintexception-p10-0000/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 17:40:12 +0000</pubDate>
		<dc:creator>Harry Zheng</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.dosql.com/blog/?p=575</guid>
		<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/b14P3N90A_9gnxPH2WY3Y2bYgC4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b14P3N90A_9gnxPH2WY3Y2bYgC4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/b14P3N90A_9gnxPH2WY3Y2bYgC4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b14P3N90A_9gnxPH2WY3Y2bYgC4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Dosql/~4/Dq2n2HaLgnE" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.dosql.com/blog/2010/03/office-sharepoint-server-error-eventtype-ulsexception12-p1-w3wp-exe-p2-6-0-3790-3959-p3-45d6968e-p4-system-data-p5-2-0-0-0-p6-461ef1ad-p7-1999-p8-7-p9-constraintexception-p10-0000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.dosql.com/blog/2010/03/office-sharepoint-server-error-eventtype-ulsexception12-p1-w3wp-exe-p2-6-0-3790-3959-p3-45d6968e-p4-system-data-p5-2-0-0-0-p6-461ef1ad-p7-1999-p8-7-p9-constraintexception-p10-0000/</feedburner:origLink></item>
	</channel>
</rss>
