<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Another IT blog</title>
	<atom:link href="http://anotheritblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anotheritblog.wordpress.com</link>
	<description>Just another IT blog</description>
	<lastBuildDate>Wed, 06 Oct 2010 15:50:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anotheritblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Another IT blog</title>
		<link>http://anotheritblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anotheritblog.wordpress.com/osd.xml" title="Another IT blog" />
	<atom:link rel='hub' href='http://anotheritblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cleanup TFS Workspaces</title>
		<link>http://anotheritblog.wordpress.com/2010/10/06/cleanup-tfs-workspaces/</link>
		<comments>http://anotheritblog.wordpress.com/2010/10/06/cleanup-tfs-workspaces/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 15:50:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=31</guid>
		<description><![CDATA[If you did several chekouts from TFS on your local machine using 2 different users, there&#8217;s a mess up of workspaces on your local computer and you may have issues doing other checkouts. To clean up the workspaces, use the following commands in the Visual Studio command line tool: tf workspaces to list the checkouts [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=31&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you did several chekouts from TFS on your local machine using 2 different users, there&#8217;s a mess up of workspaces on your local computer and you may have issues doing other checkouts.</p>
<p>To clean up the workspaces, use the following commands in the Visual Studio command line tool:</p>
<p><em>tf workspaces </em>to list the checkouts done on the machine</p>
<p><em>tf workspaces /remove:* </em>or <em>tf workspace /delete &lt;workspacename&gt;;&lt;workspaceownername&gt;</em></p>
<p>and here you are, your development computer is now ready for another clean checkout</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=31&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2010/10/06/cleanup-tfs-workspaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to drop all connections of a database?</title>
		<link>http://anotheritblog.wordpress.com/2010/07/21/how-to-drop-all-connections-of-a-database/</link>
		<comments>http://anotheritblog.wordpress.com/2010/07/21/how-to-drop-all-connections-of-a-database/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 22:42:56 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=29</guid>
		<description><![CDATA[In my current project, we need quite often to do a restore of the SQL Server database of the testing environment. It can be a nightmare to have to restore a database while dozens of persons are using it. A simple solution to do it exists: First, detach the database: From the MS SQL Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=29&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my current project, we need quite often to do a restore of the SQL Server database of the testing environment. It can be a nightmare to have to restore a database while dozens of persons are using it.</p>
<p>A simple solution to do it exists:</p>
<ul>
<li>First, detach the database:
<ul>
<li>From the MS SQL Server Management Studio, right-click on the database and choose &#8220;Detach&#8221;</li>
<li>Tick the &#8220;Drop Connections&#8221; box</li>
<li>Detach the database</li>
</ul>
</li>
<li>All the connections are dropped and you can perform your restore of the database</li>
<li>Here you are, users can continue to use the database until your next restore.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=29&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2010/07/21/how-to-drop-all-connections-of-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>Add local users in TFS 2010</title>
		<link>http://anotheritblog.wordpress.com/2010/07/19/add-local-users-in-tfs-2010/</link>
		<comments>http://anotheritblog.wordpress.com/2010/07/19/add-local-users-in-tfs-2010/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 14:52:02 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=22</guid>
		<description><![CDATA[To give acess to local users in your projects in Team Foundation Server 2010, you need to: use the team foundation server administration console from the server itself Select the  Project Collection you want to administrate Select the option administrate security Select the [Collection]/Valid users group and click on properties You should find the contributors [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=22&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To give acess to local users in your projects in Team Foundation Server 2010, you need to:</p>
<ol>
<li>use the team foundation server administration console from the server itself</li>
<li>Select the  Project Collection you want to administrate</li>
<li>Select the option administrate security</li>
<li>Select the [Collection]/Valid users group and click on properties</li>
<li>You should find the contributors group of your project there, select the group and click properties</li>
<li>From there you can add local users.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=22&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2010/07/19/add-local-users-in-tfs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>Slow debugging on Visual Studio</title>
		<link>http://anotheritblog.wordpress.com/2010/01/22/slow-debugging-on-visual-studio/</link>
		<comments>http://anotheritblog.wordpress.com/2010/01/22/slow-debugging-on-visual-studio/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 18:27:39 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=19</guid>
		<description><![CDATA[Recently, I was experiencing a very slow debugging with Visual Studio for an ASP.NET project. There are few solutions for that on Internet: Review the locations from where the computer is loading symbols Review the debugging parameters Stop the add-ons &#8230; It didn&#8217;t help me at all&#8230; Looking for a solution, finding one, implementing it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=19&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I was experiencing a very slow debugging with Visual Studio for an ASP.NET project.</p>
<p>There are few solutions for that on Internet:</p>
<ul>
<li>Review the locations from where the computer is loading symbols</li>
<li>Review the debugging parameters</li>
<li>Stop the add-ons</li>
<li>&#8230;</li>
</ul>
<p>It didn&#8217;t help me at all&#8230; Looking for a solution, finding one, implementing it and start this cycle over because no solutions would work.</p>
<p>The workaround I found was to start the project in debug and then &#8220;stop&#8221; the debug mode in visual studio and browse the ASP.NET site from the local server. But it&#8217;s not really helpful when you want to use breakpoints, watches and all the rest of the good debugger tools.</p>
<p>The solution I found is reinstalling Visual Studio. It worked like magic&#8230; I think I installed some tools (like SQL Server) that messed up with Visual Studio and reinstalling it was the solution.</p>
<p>If you have such a slowness problem&#8230;I wish you good luck and please, try to not become insane&#8230; it almost happened to me <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=19&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2010/01/22/slow-debugging-on-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>Truncated SQL statement with Nant</title>
		<link>http://anotheritblog.wordpress.com/2009/07/11/truncated-sql-statement-with-nant/</link>
		<comments>http://anotheritblog.wordpress.com/2009/07/11/truncated-sql-statement-with-nant/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 17:18:35 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Nant]]></category>
		<category><![CDATA[task]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=14</guid>
		<description><![CDATA[Lately, I had an issue with a SQL script that couldn&#8217;t pass via the Nant &#60;sql&#62; task. In fact, this script was quite big and got truncated during its execution. I managed to solve this putting the &#8220;delimstyle&#8221; parameter to &#8220;Line&#8220;. The only drawback of this is that all &#8220;GO&#8221; statements should be on a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=14&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately, I had an issue with a SQL script that couldn&#8217;t pass via the Nant &lt;sql&gt; task.</p>
<p>In fact, this script was quite big and got truncated during its execution. I managed to solve this putting the &#8220;<em>delimstyle</em>&#8221; parameter to &#8220;<em>Line</em>&#8220;. The only drawback of this is that all &#8220;GO&#8221; statements should be on a separate line. But it&#8217;s generally the case.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=14&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2009/07/11/truncated-sql-statement-with-nant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>Some interesting SQL Server queries</title>
		<link>http://anotheritblog.wordpress.com/2009/07/11/some-interesting-sql-server-queries/</link>
		<comments>http://anotheritblog.wordpress.com/2009/07/11/some-interesting-sql-server-queries/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 16:54:25 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[System tables]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=10</guid>
		<description><![CDATA[Lately, I needed to develop a utility checking the structure of a SQL Serve 2005 database and saving structure and data in XML files. The objective was to easily obtain XML files to initialize the state of our database for Integration Testing. Anyway, I needed to google a lot to find the SQL queries I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=10&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately, I needed to develop a utility checking the structure of a SQL Serve 2005 database and saving structure and data in XML files. The objective was to easily obtain XML files to initialize the state of our database for Integration Testing.</p>
<p>Anyway, I needed to google a lot to find the SQL queries I needed to get all the details about the tables and structure of my database. Below, you&#8217;ll find the queries I used. I think it&#8217;s useful to store them in a single location.</p>
<p>To list all the tables (out of system tables) of your database: <em>exec sp_tables @table_type=&#8217;TABLE&#8217;</em></p>
<p>To get all the details of a table (in several result sets): <em>sp_help table_name</em></p>
<p>To list all columns from a table:  <em>select name from syscolumns where id=object_id(&#8216;tablename&#8217;)&#8221;</em></p>
<p>To list the columns part of primary key:<br />
<em>SELECT cu.COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE cu WHERE EXISTS ( SELECT tc.* FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc WHERE tc.CONSTRAINT_CATALOG = &#8216;databasename&#8217; AND tc.TABLE_NAME = &#8216;tablename&#8221; AND tc.CONSTRAINT_TYPE = &#8216;PRIMARY KEY&#8217; AND tc.CONSTRAINT_NAME = cu.CONSTRAINT_NAME )</em></p>
<p>check if a column is identity:SELECT COLUMNPROPERTY( OBJECT_ID(&#8216;tablename&#8217;),&#8217;columnname&#8217;,'IsIdentity&#8217;)</p>
<p>I&#8217;m pretty sure there are tons of other useful commands that I still need to learn. But at least this was what I needed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=10&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2009/07/11/some-interesting-sql-server-queries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello World !</title>
		<link>http://anotheritblog.wordpress.com/2009/06/20/hello-world/</link>
		<comments>http://anotheritblog.wordpress.com/2009/06/20/hello-world/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 02:44:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://anotheritblog.wordpress.com/?p=3</guid>
		<description><![CDATA[There is no need for another IT blog, there are hundreds of thousands from the best experts all over the world. Anyway, as I&#8217;m starting again to have a technical role in a project team&#8230; I&#8217;ll try to add my word, technical tips, and feelings about IT projects. I&#8217;ll cover 2 aspects the technical details, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=3&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is no need for another IT blog, there are hundreds of thousands from the best experts all over the world.</p>
<p>Anyway, as I&#8217;m starting again to have a technical role in a project team&#8230; I&#8217;ll try to add my word, technical tips, and feelings about IT projects. I&#8217;ll cover 2 aspects the technical details, but also the methodologies of project management and general life dealing with IT purposes. So, A blog&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anotheritblog.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anotheritblog.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anotheritblog.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anotheritblog.wordpress.com&amp;blog=8011817&amp;post=3&amp;subd=anotheritblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anotheritblog.wordpress.com/2009/06/20/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d2b78f053ac81f6f922e0c127d82b4fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">davandries</media:title>
		</media:content>
	</item>
	</channel>
</rss>
