<?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>Clint Davis</title>
	<atom:link href="http://clintdavis.us/feed/" rel="self" type="application/rss+xml" />
	<link>http://clintdavis.us</link>
	<description>Application Development, Databases, and Philosophy</description>
	<lastBuildDate>Tue, 12 Mar 2013 17:17:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Notes about Microsoft&#8217;s Hekaton</title>
		<link>http://clintdavis.us/notes-about-microsofts-hekaton/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=notes-about-microsofts-hekaton</link>
		<comments>http://clintdavis.us/notes-about-microsofts-hekaton/#comments</comments>
		<pubDate>Sat, 10 Nov 2012 17:15:29 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[#hekaton]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=287</guid>
		<description><![CDATA[I was fortunate to catch the Developer Chalk Talk about Hekaton at PASS Summit 2012. For those not familiar, Hekaton is a new in-memory technology being integrated with SQL Server that is able to radically improve performance. Here are some of the things I caught from the talk with the developers of Hekaton. The teams [...]]]></description>
				<content:encoded><![CDATA[<p>I was fortunate to catch the Developer Chalk Talk about Hekaton at PASS Summit 2012. For those not familiar, Hekaton is a new in-memory technology being integrated with SQL Server that is able to radically improve performance. Here are some of the things I caught from the talk with the developers of Hekaton.</p>
<ul>
<li>The teams goal was a 100x performance increase over normal tables, hence the name Hekaton.</li>
<li>Hekaton is not just putting tables into memory. It is a completely redesigned way of thinking about tables.</li>
<li>While you could put an entire database in Hekaton, that is not exactly the way Microsoft engineers thought it would be used. Probable use case&#8217;s from Microsoft are that specific tables are only brought in to Hekaton, specifically those with problems with locking and latching.</li>
<li>There are no locking and latching in Hekaton tables.</li>
<li>Data is persisted in Hekaton tables.</li>
<li>You do not want to under allocate space in Hekaton. Microsoft didn&#8217;t exactly say what would happen if you wrote more data than space in Hekaton from the tone it didn&#8217;t seem pretty. I got the vibe that it may crash.</li>
<li>You can also recompile some stored procedures to further increase performance. Apparently, they are compiling the stored procedures to machine code to get them to run faster. This may not work on all stored procedures. This is also optional, you do not have to do this.</li>
<li>Only hash indexes are supported in Hekaton at this time.</li>
<li>At this time, only whole tables are supported in Hekaton. No partions.</li>
<li>Hekaton will be in SQL Server Enterprise edition when it comes out.</li>
</ul>
<p>The guys were very good at answering questions. They made it clear that not all features of traditional tables will be available in the first release. They are working with customers to see what exactly should be available in the first release. They couldn&#8217;t answer all the questions as it was supposed to only be a 30 minute chat (I had to leave after 45) but they did say they would put out a paper about some of the more detailed technical items.</p>
<p>To clarify, Hekaton is not out yet. It will be released with the next version of SQL Server. The guys claimed to see 2x &#8211; 50x improvement with Hekaton tables in their labs but it&#8217;s still very early.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/notes-about-microsofts-hekaton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PASS Summit 2012: Day 0</title>
		<link>http://clintdavis.us/pass-summit-2012-day-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pass-summit-2012-day-0</link>
		<comments>http://clintdavis.us/pass-summit-2012-day-0/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 05:29:05 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[#pass]]></category>
		<category><![CDATA[#summit12]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=282</guid>
		<description><![CDATA[Here I chronicle my first time at PASS Summit 2012.My goals for the conference and my experiences. I&#8217;m very excited to be able to make it to the PASS Summit this year. I&#8217;m hoping to learn as much as I can about everything but especially about some of the peculiarities of administering SQL Server and learning about [...]]]></description>
				<content:encoded><![CDATA[<p><em>Here I chronicle my first time at <a href="http://www.sqlpass.org/summit/2012/">PASS Summit 2012</a>.My goals for the conference and my experiences.</em></p>
<p>I&#8217;m very excited to be able to make it to the PASS Summit this year. I&#8217;m hoping to learn as much as I can about everything but especially about some of the peculiarities of administering SQL Server and learning about some of the business intelligence tools coming out from Microsoft.</p>
<p>Day 0 is the first day for me. I arrived in Seattle on November 4 and the pre-cons start the next day. I signed up for two pre-cons and the full conference.</p>
<p>So first, the Seattle Airport is great. I did not have any problems finding my way around. I walked (and walked, and walked) to the LINK light rail to take me from the Airport to downtown Seattle. The train trip took about 45 minutes and went through many stops, including by the football field where a game was being held. The train was nice and clean.</p>
<p>The train ends in downtown underground near Pine St. I am staying at the La Quinta since everything else was booked up. I found my way around and took the Seattle Streetcar to the stop near 9th and Denny. I then walked to my hotel off 8th.</p>
<p>I&#8217;ve had good experiences with La Quinta in the past so I chose them again. This hotel is about 0.6 miles from the conference center or about a 15 minute walk. I arrived early and they would have checked me in but my room wasn&#8217;t ready. They did offer to store my stuff in a locked room they had and offered me coffee in their breakfast area. I took them up on storing my bag but I decided to go walk around the city.</p>
<p>Seattle is a neat city. It is very walkable and you just never know what you&#8217;re going to see. I was walking towards a water feature when I noticed all the trees around me were purple! Some kind of art project. I found the conference center and then grabbed something to eat and went back to the hotel. I was still early but they had gotten my room ready while I was gone and was able to check in.</p>
<p>I took a small nap to recover from the three hour time difference and then went to the early check-in. I&#8217;m glad I did because there were a couple hundred people there when the doors were opened! Check-in was very organized and they had everything ready for me. I didn&#8217;t realize a bookbag came with the check-in but I&#8217;m glad it did. I was about to go get another one because before I had noticed my bag was ripping.</p>
<p>I tried to stick around to meet people but I didn&#8217;t know anyone and people either knew each other already or were recovering from their flights as well. So I went back to the hotel to get ready for the next day. My first pre-con: Relational Database Design Workshop.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/pass-summit-2012-day-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropping Extended Properties</title>
		<link>http://clintdavis.us/dropping-extended-properties/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dropping-extended-properties</link>
		<comments>http://clintdavis.us/dropping-extended-properties/#comments</comments>
		<pubDate>Mon, 25 Jun 2012 18:29:23 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tsql]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=250</guid>
		<description><![CDATA[Found these scripts on the MSDN site. These scripts will drop extended properties from SQL Server. &#160; --tables &#160; select 'EXEC sp_dropextendedproperty &#160; @name = ''MS_Description'' &#160; ,@level0type = ''schema'' &#160; ,@level0name = ' + object_schema_name&#40;extended_properties.major_id&#41; + ' &#160; ,@level1type = ''table'' &#160; ,@level1name = ' + object_name&#40;extended_properties.major_id&#41; &#160; from sys.extended_properties &#160; where extended_properties.class_desc = [...]]]></description>
				<content:encoded><![CDATA[<p>Found these scripts on the MSDN site. These scripts will drop extended properties from SQL Server.</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #008080;">--tables</span>
&nbsp;
<span style="color: #0000FF;">select</span> <span style="color: #FF0000;">'EXEC sp_dropextendedproperty
&nbsp;
@name = '</span><span style="color: #FF0000;">'MS_Description'</span><span style="color: #FF0000;">'
&nbsp;
,@level0type = '</span><span style="color: #FF0000;">'schema'</span><span style="color: #FF0000;">'
&nbsp;
,@level0name = '</span> <span style="color: #808080;">+</span> object_schema_name<span style="color: #808080;">&#40;</span>extended_properties.<span style="color: #202020;">major_id</span><span style="color: #808080;">&#41;</span> <span style="color: #808080;">+</span> <span style="color: #FF0000;">'
&nbsp;
,@level1type = '</span><span style="color: #FF0000;">'table'</span><span style="color: #FF0000;">'
&nbsp;
,@level1name = '</span> <span style="color: #808080;">+</span> <span style="color: #FF00FF;">object_name</span><span style="color: #808080;">&#40;</span>extended_properties.<span style="color: #202020;">major_id</span><span style="color: #808080;">&#41;</span>
&nbsp;
<span style="color: #0000FF;">from</span> sys.<span style="color: #202020;">extended_properties</span>
&nbsp;
<span style="color: #0000FF;">where</span> extended_properties.<span style="color: #202020;">class_desc</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'OBJECT_OR_COLUMN'</span>
&nbsp;
and extended_properties.<span style="color: #202020;">minor_id</span> <span style="color: #808080;">=</span> <span style="color: #000;">0</span>
&nbsp;
and extended_properties.<span style="color: #202020;">name</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'MS_Description'</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #008080;">--columns</span>
&nbsp;
<span style="color: #0000FF;">select</span> <span style="color: #FF0000;">'EXEC sp_dropextendedproperty
&nbsp;
@name = '</span><span style="color: #FF0000;">'MS_Description'</span><span style="color: #FF0000;">'
&nbsp;
,@level0type = '</span><span style="color: #FF0000;">'schema'</span><span style="color: #FF0000;">'
&nbsp;
,@level0name = '</span> <span style="color: #808080;">+</span> object_schema_name<span style="color: #808080;">&#40;</span>extended_properties.<span style="color: #202020;">major_id</span><span style="color: #808080;">&#41;</span> <span style="color: #808080;">+</span> <span style="color: #FF0000;">'
&nbsp;
,@level1type = '</span><span style="color: #FF0000;">'table'</span><span style="color: #FF0000;">'
&nbsp;
,@level1name = '</span> <span style="color: #808080;">+</span> <span style="color: #FF00FF;">object_name</span><span style="color: #808080;">&#40;</span>extended_properties.<span style="color: #202020;">major_id</span><span style="color: #808080;">&#41;</span> <span style="color: #808080;">+</span> <span style="color: #FF0000;">'
&nbsp;
,@level2type = '</span><span style="color: #FF0000;">'column'</span><span style="color: #FF0000;">'
&nbsp;
,@level2name = '</span> <span style="color: #808080;">+</span> columns.<span style="color: #202020;">name</span>
&nbsp;
<span style="color: #0000FF;">from</span> sys.<span style="color: #202020;">extended_properties</span>
&nbsp;
join sys.<span style="color: #202020;">columns</span>
&nbsp;
<span style="color: #0000FF;">on</span> columns.<span style="color: #FF00FF;">object_id</span> <span style="color: #808080;">=</span> extended_properties.<span style="color: #202020;">major_id</span>
&nbsp;
and columns.<span style="color: #202020;">column_id</span> <span style="color: #808080;">=</span> extended_properties.<span style="color: #202020;">minor_id</span>
&nbsp;
<span style="color: #0000FF;">where</span> extended_properties.<span style="color: #202020;">class_desc</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'OBJECT_OR_COLUMN'</span>
&nbsp;
and extended_properties.<span style="color: #202020;">minor_id</span> <span style="color: #808080;">&gt;</span> <span style="color: #000;">0</span>
&nbsp;
and extended_properties.<span style="color: #202020;">name</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'MS_Description'</span></pre></td></tr></table></div>

<p>Thanks to <a href="http://social.msdn.microsoft.com/profile/louis%20davidson/?ws=usercard-mini" target="_blank">Louis Davidson</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/dropping-extended-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Correctly Install PowerPivot 2012 RTM</title>
		<link>http://clintdavis.us/how-to-correctly-install-powerpivot-2012-rtm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-correctly-install-powerpivot-2012-rtm</link>
		<comments>http://clintdavis.us/how-to-correctly-install-powerpivot-2012-rtm/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 19:15:03 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[powerpivot]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=243</guid>
		<description><![CDATA[PowerPivot is really neat, so I was excited to try the new version. Unfortunatley, when I installed the new version it would not load. It gave a generic error message saying it could not load. My problem is that I installed the .NET 4 Client version instead of the full version. This is the correct [...]]]></description>
				<content:encoded><![CDATA[<p>PowerPivot is really neat, so I was excited to try the new version. Unfortunatley, when I installed the new version it would not load. It gave a generic error message saying it could not load. My problem is that I installed the .NET 4 Client version instead of the full version. This is the correct way to install PowerPivot 2012 RTM on a Windows 7 64 machine.</p>
<ol>
<li> Make sure the machine is fully patched</li>
<li><a title=".NET Framework 4.0 Full" href="http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;id=17851">Install .NET Framework 4.0 (the full version)</a></li>
<li><a title="VSTO 2010" href="http://www.microsoft.com/en-us/download/details.aspx?id=35594">Install Visual Studio 2010 Tools for Office Runtime (x64)</a></li>
<li><a title="PowerPivot 2012 RTM" href="http://www.microsoft.com/en-us/download/details.aspx?id=29074">Install PowerPivot 2012 RTM (x64)</a></li>
</ol>
<p>These must be installed in this order or it will not work.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/how-to-correctly-install-powerpivot-2012-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find most expensive queries</title>
		<link>http://clintdavis.us/find-most-expensive-queries/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-most-expensive-queries</link>
		<comments>http://clintdavis.us/find-most-expensive-queries/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 18:29:48 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[tsql]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=240</guid>
		<description><![CDATA[SELECT TOP 10 SUBSTRING&#40;qt.TEXT, &#40;qs.statement_start_offset/2&#41;+1, &#40;&#40;CASE qs.statement_end_offset WHEN -1 THEN DATALENGTH&#40;qt.TEXT&#41; ELSE qs.statement_end_offset END - qs.statement_start_offset&#41;/2&#41;+1&#41;, qs.execution_count, qs.total_logical_reads, qs.last_logical_reads, qs.total_logical_writes, qs.last_logical_writes, qs.total_worker_time, qs.last_worker_time, qs.total_elapsed_time/1000000 total_elapsed_time_in_S, qs.last_elapsed_time/1000000 last_elapsed_time_in_S, qs.last_execution_time, qp.query_plan FROM sys.dm_exec_query_stats qs CROSS APPLY sys.dm_exec_sql_text&#40;qs.sql_handle&#41; qt CROSS APPLY sys.dm_exec_query_plan&#40;qs.plan_handle&#41; qp ORDER BY qs.total_logical_reads DESC -- logical reads -- ORDER BY qs.total_logical_writes DESC -- logical writes [...]]]></description>
				<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> <span style="color: #0000FF;">TOP</span> <span style="color: #000;">10</span> <span style="color: #FF00FF;">SUBSTRING</span><span style="color: #808080;">&#40;</span>qt.<span style="color: #0000FF;">TEXT</span>, <span style="color: #808080;">&#40;</span>qs.<span style="color: #202020;">statement_start_offset</span><span style="color: #808080;">/</span><span style="color: #000;">2</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">+</span><span style="color: #000;">1</span>,
<span style="color: #808080;">&#40;</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">CASE</span> qs.<span style="color: #202020;">statement_end_offset</span>
<span style="color: #0000FF;">WHEN</span> <span style="color: #808080;">-</span><span style="color: #000;">1</span> <span style="color: #0000FF;">THEN</span> DATALENGTH<span style="color: #808080;">&#40;</span>qt.<span style="color: #0000FF;">TEXT</span><span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">ELSE</span> qs.<span style="color: #202020;">statement_end_offset</span>
<span style="color: #0000FF;">END</span> <span style="color: #808080;">-</span> qs.<span style="color: #202020;">statement_start_offset</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">/</span><span style="color: #000;">2</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">+</span><span style="color: #000;">1</span><span style="color: #808080;">&#41;</span>,
qs.<span style="color: #202020;">execution_count</span>,
qs.<span style="color: #202020;">total_logical_reads</span>, qs.<span style="color: #202020;">last_logical_reads</span>,
qs.<span style="color: #202020;">total_logical_writes</span>, qs.<span style="color: #202020;">last_logical_writes</span>,
qs.<span style="color: #202020;">total_worker_time</span>,
qs.<span style="color: #202020;">last_worker_time</span>,
qs.<span style="color: #202020;">total_elapsed_time</span><span style="color: #808080;">/</span><span style="color: #000;">1000000</span> total_elapsed_time_in_S,
qs.<span style="color: #202020;">last_elapsed_time</span><span style="color: #808080;">/</span><span style="color: #000;">1000000</span> last_elapsed_time_in_S,
qs.<span style="color: #202020;">last_execution_time</span>,
qp.<span style="color: #202020;">query_plan</span>
<span style="color: #0000FF;">FROM</span> sys.<span style="color: #202020;">dm_exec_query_stats</span> qs
<span style="color: #808080;">CROSS</span> APPLY sys.<span style="color: #202020;">dm_exec_sql_text</span><span style="color: #808080;">&#40;</span>qs.<span style="color: #202020;">sql_handle</span><span style="color: #808080;">&#41;</span> qt
<span style="color: #808080;">CROSS</span> APPLY sys.<span style="color: #202020;">dm_exec_query_plan</span><span style="color: #808080;">&#40;</span>qs.<span style="color: #202020;">plan_handle</span><span style="color: #808080;">&#41;</span> qp
<span style="color: #0000FF;">ORDER</span> <span style="color: #0000FF;">BY</span> qs.<span style="color: #202020;">total_logical_reads</span> <span style="color: #0000FF;">DESC</span> <span style="color: #008080;">-- logical reads</span>
<span style="color: #008080;">-- ORDER BY qs.total_logical_writes DESC -- logical writes</span>
<span style="color: #008080;">-- ORDER BY qs.total_worker_time DESC -- CPU time</span></pre></td></tr></table></div>

<p><a title="Pinal Dave" href="http://blog.sqlauthority.com/2010/05/14/sql-server-find-most-expensive-queries-using-dmv/">From Pinal Dave</a></p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/find-most-expensive-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover database in &#8220;Restoring&#8230;&#8221; mode</title>
		<link>http://clintdavis.us/recover-database-in-restoring-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recover-database-in-restoring-mode</link>
		<comments>http://clintdavis.us/recover-database-in-restoring-mode/#comments</comments>
		<pubDate>Thu, 12 May 2011 18:19:32 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=220</guid>
		<description><![CDATA[Here is the sql to run when your database is in restoring mode. restore database Budgets with recovery You should know why your database is in restoring mode to begin with before running. For me, it&#8217;s typically because I left the db in no recovery mode after I restored a backup.]]></description>
				<content:encoded><![CDATA[<p>Here is the sql to run when your database is in restoring mode.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">restore</span> <span style="color: #0000FF;">database</span> Budgets <span style="color: #0000FF;">with</span> recovery</pre></td></tr></table></div>

<p>You should know why your database is in restoring mode to begin with before running. For me, it&#8217;s typically because I left the db in no recovery mode after I restored a backup.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/recover-database-in-restoring-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Approximate total rows in SQL Server database</title>
		<link>http://clintdavis.us/approximate-total-rows-in-sql-server-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=approximate-total-rows-in-sql-server-database</link>
		<comments>http://clintdavis.us/approximate-total-rows-in-sql-server-database/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 14:56:31 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[total rows]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=213</guid>
		<description><![CDATA[Here is a script that approximates the total rows in your SQL Server 2005+ database. It&#8217;s approximate because it comes off sys tables which are not updated constantly. SELECT &#91;TableName&#93; = so.name, &#91;RowCount&#93; = MAX&#40;si.rows&#41; FROM sysobjects so, sysindexes si WHERE so.xtype = 'U' AND si.id = OBJECT_ID&#40;so.name&#41; GROUP BY so.name ORDER BY 2 DESC [...]]]></description>
				<content:encoded><![CDATA[<p>Here is a script that approximates the total rows in your SQL Server 2005+ database. It&#8217;s approximate because it comes off sys tables which are not updated constantly.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> 
    <span style="color: #808080;">&#91;</span>TableName<span style="color: #808080;">&#93;</span> <span style="color: #808080;">=</span> so.<span style="color: #202020;">name</span>, 
    <span style="color: #808080;">&#91;</span>RowCount<span style="color: #808080;">&#93;</span> <span style="color: #808080;">=</span> <span style="color: #FF00FF;">MAX</span><span style="color: #808080;">&#40;</span>si.<span style="color: #0000FF;">rows</span><span style="color: #808080;">&#41;</span> 
<span style="color: #0000FF;">FROM</span> 
    sysobjects so, 
    sysindexes si 
<span style="color: #0000FF;">WHERE</span> 
    so.<span style="color: #202020;">xtype</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'U'</span> 
    <span style="color: #808080;">AND</span> 
    si.<span style="color: #202020;">id</span> <span style="color: #808080;">=</span> <span style="color: #FF00FF;">OBJECT_ID</span><span style="color: #808080;">&#40;</span>so.<span style="color: #202020;">name</span><span style="color: #808080;">&#41;</span> 
<span style="color: #0000FF;">GROUP</span> <span style="color: #0000FF;">BY</span> 
    so.<span style="color: #202020;">name</span> 
<span style="color: #0000FF;">ORDER</span> <span style="color: #0000FF;">BY</span> 
    <span style="color: #000;">2</span> <span style="color: #0000FF;">DESC</span></pre></td></tr></table></div>

<p>I found this script at <a href="http://sqlserver2000.databases.aspfaq.com/how-do-i-get-a-list-of-sql-server-tables-and-their-row-counts.html">this site</a> so all kudos to them.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/approximate-total-rows-in-sql-server-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measure bandwidth between two computers on network</title>
		<link>http://clintdavis.us/measure-bandwidth-between-two-computers-on-network/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=measure-bandwidth-between-two-computers-on-network</link>
		<comments>http://clintdavis.us/measure-bandwidth-between-two-computers-on-network/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 11:46:34 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=210</guid>
		<description><![CDATA[I found this tool called PCATTCP that will measure the speed between two computers on a network. It&#8217;s kinda like Iperf but for windows. On the recieving computer you use this: C:&#62; pcattcp -r And on the transmitting computer you use this: C:&#62; pcattcp -t 172.16.1.10 Here are what the results look like. C:\Development&#62;pcattcp -t [...]]]></description>
				<content:encoded><![CDATA[<p>I found this tool called <a href="http://www.pcausa.com/Utilities/pcattcp.htm">PCATTCP</a> that will measure the speed between two computers on a network. It&#8217;s kinda like Iperf but for windows.</p>
<p>On the recieving computer you use this:</p>
<pre>C:&gt; <strong>pcattcp -r</strong></pre>
<p>And on the transmitting computer you use this:</p>
<pre>C:&gt; <strong>pcattcp -t 172.16.1.10</strong></pre>
<p>Here are what the results look like.</p>
<pre>C:\Development&gt;<strong><span style="font-size: small;">pcattcp -t 192.168.15.112
</span></strong>PCAUSA Test TCP Utility V2.01.01.13 (IPv4/IPv6)
  IP Version  : IPv4
Started TCP Transmit Test 0...
TCP Transmit Test
  Transmit    : TCPv4 0.0.0.0 -&gt; 192.168.15.112:5001
  Buffer Size : 8192; Alignment: 16384/0
  TCP_NODELAY : DISABLED (0)
  Connect     : Connected to 192.168.15.112:5001
  Send Mode   : Send Pattern; Number of Buffers: 2048
  Statistics  : TCPv4 0.0.0.0 -&gt; 192.168.15.112:5001
16777216 bytes in 0.289 real seconds = 56650.01 KB/sec +++
numCalls: 2048; msec/call: 0.145; calls/sec: 7081.252</pre>
<p>It can also use IPv6.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/measure-bandwidth-between-two-computers-on-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shout Out: Build Version Increment Add-In Visual Studio</title>
		<link>http://clintdavis.us/shout-out-build-version-increment-add-in-visual-studio/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shout-out-build-version-increment-add-in-visual-studio</link>
		<comments>http://clintdavis.us/shout-out-build-version-increment-add-in-visual-studio/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 19:33:57 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[shoutout]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=207</guid>
		<description><![CDATA[Awesome plugin for Visual Studio. I wanted to automatically increment my version info in YYYY.MM.DD format and this makes it easy. You can find it on the CodePlex site. Just make sure that after you configure it you save your project, otherwise the addin doesn&#8217;t kick in. Download Documentation]]></description>
				<content:encoded><![CDATA[<p>Awesome plugin for Visual Studio. I wanted to automatically increment my version info in YYYY.MM.DD format and this makes it easy. You can find it on the <a href="http://autobuildversion.codeplex.com/">CodePlex site</a>.</p>
<p>Just make sure that after you configure it you save your project, otherwise the addin doesn&#8217;t kick in.</p>
<p><img class="alignnone" title="Build Version Increment Add-In" src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=autobuildversion&amp;DownloadId=65779" alt="" width="740" height="451" /></p>
<p><a href="http://autobuildversion.codeplex.com/">Download</a><br />
<a href="http://autobuildversion.codeplex.com/documentation">Documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/shout-out-build-version-increment-add-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alias names in LINQ</title>
		<link>http://clintdavis.us/alias-names-in-linq/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=alias-names-in-linq</link>
		<comments>http://clintdavis.us/alias-names-in-linq/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 12:43:50 +0000</pubDate>
		<dc:creator>Clint</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://clintdavis.us/?p=201</guid>
		<description><![CDATA[Finally figured out how to set alias names in LINQ, and it&#8217;s easy. Dim orgs = From p In db.Departments Select p.deporg, Name = p.deporg &#38; &#34; - &#34; &#38; p.depname Order By deporg Name being the name of the concatenated field of p.deporg and p.depname.]]></description>
				<content:encoded><![CDATA[<p>Finally figured out how to set alias names in LINQ, and it&#8217;s easy.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #0000FF; font-weight: bold;">Dim</span> orgs <span style="color: #000000;">=</span> <span style="color: #cd6a5a; font-weight: bold;">From</span> p <span style="color: #0000FF; font-weight: bold;">In</span> db<span style="color: #000000;">.</span><span style="color: #000000;">Departments</span> <span style="color: #0000FF; font-weight: bold;">Select</span> p<span style="color: #000000;">.</span><span style="color: #000000;">deporg</span>, Name <span style="color: #000000;">=</span> p<span style="color: #000000;">.</span><span style="color: #000000;">deporg</span> <span style="color: #000000;">&amp;</span> <span style="color: #a52a2a; back-color: #fffacd;">&quot; - &quot;</span> <span style="color: #000000;">&amp;</span> p<span style="color: #000000;">.</span><span style="color: #000000;">depname</span> Order <span style="color: #cd6a5a; font-weight: bold;">By</span> deporg</pre></td></tr></table></div>

<p>Name being the name of the concatenated field of p.deporg and p.depname.</p>
]]></content:encoded>
			<wfw:commentRss>http://clintdavis.us/alias-names-in-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
