<?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>Dorms or something like that</title>
	<atom:link href="http://dorms.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dorms.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 10 Jun 2007 21:05:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dorms.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dorms or something like that</title>
		<link>http://dorms.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dorms.wordpress.com/osd.xml" title="Dorms or something like that" />
	<atom:link rel='hub' href='http://dorms.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How can you know if a table has a  certain column</title>
		<link>http://dorms.wordpress.com/2007/06/10/how-can-you-know-if-a-table-has-a-certain-column/</link>
		<comments>http://dorms.wordpress.com/2007/06/10/how-can-you-know-if-a-table-has-a-certain-column/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 20:50:44 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/06/10/how-can-you-know-if-a-table-has-a-certain-column/</guid>
		<description><![CDATA[Lets say we have a table named Users and we want to know if such table already has a column named RetailerId. That could be accomplished with the following script: IF EXISTS ( SELECT * FROM dbo.syscolumns WHERE id = (select id from dbo.sysobjects where type = &#8216;u&#8217; and name = &#8216;Users&#8216;) AND name = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=18&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lets say we have a table named <span style="font-family:Courier New;color:#990000;">Users</span> and we want to know if such table<span style="font-family:Courier New;color:#990000;"></span> already has a column named <span style="font-family:Courier New;color:#990000;">RetailerId</span>.</p>
<p>That could be accomplished  with the following script:</p>
<p><font color="#990000" face="Courier New"><font color="#999999">IF EXISTS </font><font color="#999999">(</font></font></p>
<p><font color="#990000" face="Courier New">SELECT * FROM dbo.<font color="#006600">syscolumns</font> WHERE id = (select id from dbo.<font color="#006600">sysobjects</font> where type = &#8216;u&#8217; and name = &#8216;<strong>Users</strong>&#8216;) AND name = &#8216;<strong>RetailerId</strong>&#8216;</font></p>
<p><font color="#990000" face="Courier New"><font color="#999999">)</font></font></p>
<p>The id of the RetailerId column is the same as the table&#8217;s id.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=18&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/06/10/how-can-you-know-if-a-table-has-a-certain-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2000 &#8211; objmgr80.xml</title>
		<link>http://dorms.wordpress.com/2007/03/25/sql-server-2000-objmgr80xml/</link>
		<comments>http://dorms.wordpress.com/2007/03/25/sql-server-2000-objmgr80xml/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 20:11:44 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/03/25/sql-server-2000-objmgr80xml/</guid>
		<description><![CDATA[if you look at the following screenshot , you&#8217;ll see a highlighted file named objmgr80.xml. This file contains information about T-SQL variables (you know, the @@ variables)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=17&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>if you look at the following screenshot , you&#8217;ll see a highlighted file named <code>objmgr80.xml</code>.</p>
<p><a href="http://www.flickr.com/photos/82845964@N00/433995461/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/185/433995461_1bf34803d1_m.jpg" alt="objmgr80_on_toolsBinn" height="199" width="240" /></a></p>
<p>This file contains information about T-SQL variables (you know, the <code>@@</code> variables)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=17&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/03/25/sql-server-2000-objmgr80xml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>

		<media:content url="http://farm1.static.flickr.com/185/433995461_1bf34803d1_m.jpg" medium="image">
			<media:title type="html">objmgr80_on_toolsBinn</media:title>
		</media:content>
	</item>
		<item>
		<title>UNIQUE column howto</title>
		<link>http://dorms.wordpress.com/2007/03/25/unique-column-howto/</link>
		<comments>http://dorms.wordpress.com/2007/03/25/unique-column-howto/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 19:55:03 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/03/25/unique-column-howto/</guid>
		<description><![CDATA[There are three ways to generate a UNIQUE column on a table. 1. When creating the table definition. For example: CREATE TABLE [dbo].[Factura] ( [FacturaId] [char] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [ExamenId] [int] NOT NULL UNIQUE, [Fecha] [datetime] NOT NULL ) 2. After creating the table as follows: CREATE TABLE [dbo].[Factura] ( [FacturaId] [char] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=16&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are three ways to generate a UNIQUE column on a table.</p>
<p>1. When creating the table definition. For example:</p>
<p><font size="2">CREATE TABLE [dbo].[Factura] (<br />
[FacturaId] [char] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,<br />
[ExamenId] [int] NOT NULL <span style="font-weight:bold;">UNIQUE</span>,<br />
[Fecha] [datetime] NOT NULL<br />
)</font></p>
<p>2. After creating the table as follows:</p>
<p><font size="2">CREATE TABLE [dbo].[Factura] (<br />
[FacturaId] [char] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,<br />
[ExamenId] [int] NOT NULL ,<br />
[Fecha] [datetime] NOT NULL<br />
) ON [PRIMARY]</p>
<p>ALTER TABLE Factura<br />
ADD <span style="font-weight:bold;">UNIQUE</span> (ExamenId)</font></p>
<p>3. Or, like this:</p>
<p><font size="2">ALTER TABLE Factura<br />
ADD CONSTRAINT UN_examenId <span style="font-weight:bold;">UNIQUE</span> (ExamenId) </font></p>
<p>In the first and second case SQL Server will create a deafult label for the unique column, for example something like <font size="2">UQ__Factura__29572725</font> .<br />
In the third case we are explicitly applying the label <font size="2">UN_examenId</font> for our unique column.</p>
<p>Apparently there&#8217;s another method to create a unique column, but I haven&#8217;t tested it. It&#8217;s as follows:</p>
<p><font size="2">CREATE TABLE [dbo].[Factura] (<br />
[FacturaId] [char] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,<br />
[ExamenId] [int] NOT NULL CONSTRAINT UN_Factura <span style="font-weight:bold;">UNIQUE</span> ,<br />
[Fecha] [datetime] NOT NULL<br />
) ON [PRIMARY]</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=16&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/03/25/unique-column-howto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>Filtering a DataTable</title>
		<link>http://dorms.wordpress.com/2007/03/23/filtering-a-datatable/</link>
		<comments>http://dorms.wordpress.com/2007/03/23/filtering-a-datatable/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 21:19:11 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/03/23/filtering-a-datatable/</guid>
		<description><![CDATA[DataTable dt = ds.Tables["BizRoles"]; DataRow[] dr = dt.Select(&#8220;RoleID = 45&#8243;);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=15&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DataTable dt = ds.Tables["BizRoles"];<br />
DataRow[] dr = dt.Select(&#8220;RoleID = 45&#8243;);</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=15&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/03/23/filtering-a-datatable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>SELECT FROM Select (&#8220;Memory&#8221; table)</title>
		<link>http://dorms.wordpress.com/2007/03/20/select-from-select-memory-table/</link>
		<comments>http://dorms.wordpress.com/2007/03/20/select-from-select-memory-table/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 00:04:10 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/03/20/select-from-select-memory-table/</guid>
		<description><![CDATA[This, I think, may be a different way of creating a temp table. use Northwind SELECT c.CustomerId, c.CompanyName FROM (Select * From Customers) c We are creating a &#8220;memory&#8221; table and then selecting its data.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=13&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This, I think, may be a different way of creating a temp table.</p>
<p><span style="font-family:Courier New;color:#990000;"></span><span style="font-family:Courier New;color:#990000;">use Northwind</span><br />
<span style="font-family:Courier New;color:#990000;"><br />
SELECT c.CustomerId, c.CompanyName<br />
FROM (Select * From Customers) c</span></p>
<p>We are creating a &#8220;memory&#8221; table and then selecting its data.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=13&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/03/20/select-from-select-memory-table/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server &#8211; FULL OUTER JOIN</title>
		<link>http://dorms.wordpress.com/2007/02/20/sql-server-full-outer-join/</link>
		<comments>http://dorms.wordpress.com/2007/02/20/sql-server-full-outer-join/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 04:29:44 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/02/20/sql-server-full-outer-join/</guid>
		<description><![CDATA[Given the table Packages unitId &#8212;&#8212;&#8212;&#8211; 183 184 187 188 and the table Transactions unitId &#8212;&#8212;&#8212;&#8211; 187 188 189 190 The following query: SELECT ISNULL(p.unitId, t.unitId) as UnitId FROM Packages p FULL OUTER JOIN Transactions t ON p.unitId = t.unitId WHERE p.unitId IS NULL OR t.unitId IS NULL Will return this: UnitId &#8212;&#8212;&#8212;&#8211; 183 184 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=12&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Given the table <span style="font-family:Courier New;color:#990000;">Packages</span></p>
<p><span style="font-family:Courier New;">unitId      </span><br />
<span style="font-family:Courier New;">&#8212;&#8212;&#8212;&#8211; </span><br />
<span style="font-family:Courier New;color:#009900;">183</span><br />
<span style="font-family:Courier New;color:#009900;">184</span><br />
<span style="font-family:Courier New;color:#3333ff;">187</span><br />
<span style="font-family:Courier New;color:#3333ff;">188</span></p>
<p>and the table <span style="font-family:Courier New;color:#990000;">Transactions</span></p>
<p><span style="font-family:Courier New;">unitId      </span><br />
<span style="font-family:Courier New;">&#8212;&#8212;&#8212;&#8211; </span><br />
<span style="font-family:Courier New;color:#3333ff;">187</span><br />
<span style="font-family:Courier New;color:#3333ff;">188</span><br />
<span style="font-family:Courier New;color:#009900;">189</span><br />
<span style="font-family:Courier New;color:#009900;">190</span></p>
<p>The following query:</p>
<p><span style="font-family:Courier New;color:#990000;">SELECT <span style="color:#cc33cc;">ISNULL</span>(p.unitId, t.unitId) as UnitId</span><br />
<span style="font-family:Courier New;color:#990000;">FROM Packages p</span><br />
<span style="font-family:Courier New;color:#990000;"><span style="font-weight:bold;">FULL OUTER JOIN</span> Transactions t ON p.unitId = t.unitId</span><br />
<span style="font-family:Courier New;color:#990000;">WHERE p.unitId IS NULL OR t.unitId IS NULL</span></p>
<p>Will return this:</p>
<p><span style="font-family:Courier New;">UnitId<br />
&#8212;&#8212;&#8212;&#8211;<br />
<span style="color:#009900;">183</span><br />
<span style="color:#009900;">184</span><br />
<span style="color:#009900;">189</span><br />
<span style="color:#009900;">190</span></span></p>
<p>This is the negation of the intersection, just to say it somehow.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=12&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/02/20/sql-server-full-outer-join/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server &#8211; Temp tables</title>
		<link>http://dorms.wordpress.com/2007/02/12/sql-server-temp-tables/</link>
		<comments>http://dorms.wordpress.com/2007/02/12/sql-server-temp-tables/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 04:00:53 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/02/12/sql-server-temp-tables/</guid>
		<description><![CDATA[This example SELECT UnitCode, UnitName, UnitId, UnitParentId INTO #ResultSet FROM Units JOIN Parents ON (Units.UnitChildId = Parents.UnitId) WHERE OrderId = 11 ORDER BY UnitParentId Will create a temporal table named #ResultSet. This table will be available only on the session where it was created and as long as the session is active.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=11&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This example</p>
<p><code>SELECT UnitCode, UnitName, UnitId, UnitParentId<br />
INTO #ResultSet<br />
FROM Units JOIN Parents ON (Units.UnitChildId = Parents.UnitId)<br />
WHERE OrderId = 11 ORDER BY UnitParentId</code></p>
<p>Will create a temporal table named #ResultSet. This table will be available only on the session where it was created and as long as the session is active.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=11&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/02/12/sql-server-temp-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP &#8211; Response.Write() and Response.Redirect()</title>
		<link>http://dorms.wordpress.com/2007/02/12/asp-responsewrite-and-responseredirect/</link>
		<comments>http://dorms.wordpress.com/2007/02/12/asp-responsewrite-and-responseredirect/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 04:00:25 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/02/12/asp-responsewrite-and-responseredirect/</guid>
		<description><![CDATA[If we have the following code: Response.Write("hello world") Response.Redirect(”page2.asp”) For some reason (an asp bug maybe) the redirect wont work. But if we modify the code as follow: Response.Redirect("page2.asp") Response.Write(”hello world”) Then it will work. Edited: That’s not 100% true, sometimes it works, sometimes it doesn’t. In either case, if sometime you have a Redirect [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=10&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If we have the following code:</p>
<p><code>Response.Write("hello world")<br />
Response.Redirect(”page2.asp”)</code></p>
<p>For some reason (an asp bug maybe) the redirect wont work.</p>
<p>But if we modify the code as follow:</p>
<p><code>Response.Redirect("page2.asp")<br />
Response.Write(”hello world”)</code></p>
<p>Then it will work.</p>
<p><em>Edited: That’s not 100% true, sometimes it works, sometimes it doesn’t. In either case, if sometime you have a Redirect that is not working, you should keep this in mind.</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=10&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/02/12/asp-responsewrite-and-responseredirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP &#8211; POSTing</title>
		<link>http://dorms.wordpress.com/2007/02/12/asp-posting/</link>
		<comments>http://dorms.wordpress.com/2007/02/12/asp-posting/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 03:59:14 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/02/12/asp-posting/</guid>
		<description><![CDATA[Post data from one page to another. When posting data to a page we are requesting that page, in other words, the page is requested. default.asp &#60;form name=”employeeForm” method=”post” action=”page1.asp”&#62; &#60;input name=”txtName” type=”text” value=”Bob” /&#62; &#60;input type=”submit” name=”btnOK” value=”OK” /&#62; &#60;/form&#62; page1.asp &#60;% ‘ Response.Write(Request(”txtName”)) ‘ name = Request.Form(”txtName”) ‘ name = Request(”txtName”) ‘ Response.Write(name) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=9&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Post data from one page to another.</p>
<p>When posting data to a page we are <em>requesting</em> that page, in other words, the page is <em>requested</em>.</p>
<p><strong>default.asp</strong></p>
<p>&lt;form name=”employeeForm” method=”post” action=”page1.asp”&gt;<br />
&lt;input name=”txtName”   type=”text” value=”Bob” /&gt;<br />
&lt;input type=”submit” name=”btnOK” value=”OK” /&gt;<br />
&lt;/form&gt;</p>
<p><strong>page1.asp</strong></p>
<p>&lt;%<br />
‘ Response.Write(Request(”txtName”))</p>
<p>‘ name = Request.Form(”txtName”)<br />
‘ name = Request(”txtName”)</p>
<p>‘ Response.Write(name)</p>
<p>Response.Write(”&lt;br /&gt; Request.Form(txtName) = ” &amp; Request.Form(”txtName”))<br />
Response.Write(”&lt;br /&gt; Request(txtName) = ” &amp; Request(”txtName”))<br />
%&gt;</p>
<p>Both <code>Request.Form(txtName)</code> and <code>Request(txtName)</code> are the same.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=9&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/02/12/asp-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP &#8211; QueryString</title>
		<link>http://dorms.wordpress.com/2007/02/12/asp-querystring/</link>
		<comments>http://dorms.wordpress.com/2007/02/12/asp-querystring/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 03:58:24 +0000</pubDate>
		<dc:creator>dorms</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dorms.wordpress.com/2007/02/12/asp-querystring/</guid>
		<description><![CDATA[Extra information that is passed along in the GET of the HTTP request, so the GET is the actual url. page1.asp &#60;a href="page2.asp?myValue=Andee"&#62;Click me&#60;/a&#62; page2.asp &#60;% ‘ Dim queryStringValue ‘ queryStringValue = Request.QueryString(”myValue”) ‘ queryStringValue = Request(”myValue”) Response.Write(”&#60;br /&#62; Request.QueryString(myValue) = ” &#38; Request.QueryString(”myValue”)) Response.Write(”&#60;br /&#62; Request(myValue) = ” &#38; Request(”myValue”)) %&#62; Both Request.QueryString() and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=7&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Extra information that is passed along in the GET of the HTTP request, so the GET is the actual url.</p>
<p><strong> page1.asp</strong></p>
<p><code>&lt;a href="page2.asp?myValue=Andee"&gt;Click me&lt;/a&gt;</code></p>
<p><strong>page2.asp</strong></p>
<p><code>&lt;%<br />
‘ Dim queryStringValue</code></p>
<p>‘ queryStringValue = Request.QueryString(”myValue”)<br />
‘ queryStringValue = Request(”myValue”)</p>
<p>Response.Write(”&lt;br /&gt; Request.QueryString(myValue) = ” &amp; Request.QueryString(”myValue”))<br />
Response.Write(”&lt;br /&gt; Request(myValue) = ” &amp; Request(”myValue”))<br />
%&gt;</p>
<p>Both  <code>Request.QueryString()</code> and <code>Request()</code> are the same</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dorms.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dorms.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dorms.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dorms.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dorms.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dorms.wordpress.com&amp;blog=772138&amp;post=7&amp;subd=dorms&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dorms.wordpress.com/2007/02/12/asp-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b5b893032e9cb1bbaad31be04cbc430?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dorms</media:title>
		</media:content>
	</item>
	</channel>
</rss>
