<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SQL </title>
        <link>http://geekswithblogs.net/AskPaula/category/10143.aspx</link>
        <description>sample queries</description>
        <language>en-US</language>
        <copyright>Paula DiTallo  2007-2009 All Rights Reserved</copyright>
        <managingEditor>plditallo@ieee.org</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>How do I convert an integer to a string in SQL Server?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/08/07/133968.aspx</link>
            <description>&lt;br /&gt;
If you want to reformat data, use the function convert as shown:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic; color: rgb(255, 102, 0); font-weight: bold;"&gt;select convert(varchar, cast(18 as integer)) as 'a number'&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133968"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133968" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/133968.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/08/07/133968.aspx</guid>
            <pubDate>Fri, 07 Aug 2009 17:21:48 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/133968.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/08/07/133968.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/133968.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/133968.aspx</trackback:ping>
        </item>
        <item>
            <title>SQL Server: Why do I get "multi-part identifier could not be bound" ?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/08/06/133952.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Let's say you've developed a stored procedure that assigns a count value to a variable which looks like this:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;SELECT @HasDefaultShipTo = count(*)&lt;br /&gt;
  FROM &lt;em&gt;StakeHolderLoc_Assoc&lt;/em&gt; &lt;br /&gt;
    WHERE assoc.StakeHldrID = @StkhldrID&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;When you execute to compile you will see the error:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#993300"&gt;&lt;strong&gt;Msg 4104,&lt;/strong&gt; Level 16, State 1, Procedure MetroDevETL_1, Line 80&lt;br /&gt;
The multi-part identifier "assoc.StakeHldrID" could not be bound.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;The reason this error appears is because you have forgotten to associate/bind the table to "assoc". The corrected SQL will look like this:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;SELECT @HasDefaultShipTo = count(*)&lt;br /&gt;
  FROM &lt;em&gt;&lt;strong&gt;&lt;font color="#ff6600"&gt;StakeHolderLoc_Assoc assoc&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
    WHERE assoc.StakeHldrID = @StkhldrID&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133952"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133952" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/133952.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/08/06/133952.aspx</guid>
            <pubDate>Fri, 07 Aug 2009 04:13:59 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/133952.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/08/06/133952.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/133952.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/133952.aspx</trackback:ping>
        </item>
        <item>
            <title>A 'Get it Done Now!' Approach for transforming SQL Server Data to XML Data</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132496.aspx</link>
            <description>&lt;br /&gt;
First, for all of the MS SQL Server database purists out there that will complain vehemently against this method of extraction/formatting because of the special characters (SEE: &lt;span style="font-weight: bold;"&gt;http://www.webmonkey.com/reference/Special_Characters&lt;/span&gt;) that may (will likely) surface and need to be escaped, or that there's a better way to do this such as utilizing the XML Schema Collection/XML Explicit features available with SQL Server, etc. -- I recognize your concern, however, you'll have to admit, this is still (low-tech/mid-90's as it is) one of the fastest and most easily understood ways of simply selecting data out of existing tables and into an XML file with commonly available tools! &lt;img src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/wink_smile.gif" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic; color: rgb(153, 51, 0);"&gt;&lt;span style="font-weight: bold;"&gt;This method is intended for a one-time only conversion process. Anything else will require further examination of XML Explicit/XML Schema collection conversion processing&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;font size="4" style="font-weight: bold;"&gt;..For that one-time conversion....here's what to do....&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;font size="3"&gt;&lt;span style="font-weight: bold;"&gt;Let's say this is the XSD schema you have for storing Sales Agent data in XML:&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;&amp;lt;xsd:schema id="NewDataSet" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;  &amp;lt;xsd:element name="SalesRep"&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;    &amp;lt;xsd:complexType&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;      &amp;lt;xsd:sequence&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="First" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Last" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Email" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Mobile" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Phone" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Fax" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Address1" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Address2" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="City" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="State" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Country" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="CountryName" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Postal" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="Territory" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element name="TerritoryState" type="xsd:string" minOccurs="0" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;      &amp;lt;/xsd:sequence&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;    &amp;lt;/xsd:complexType&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;  &amp;lt;/xsd:element&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;  &amp;lt;xsd:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;    &amp;lt;xsd:complexType&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;      &amp;lt;xsd:choice minOccurs="0" maxOccurs="unbounded"&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;        &amp;lt;xsd:element ref="SalesRep" /&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;      &amp;lt;/xsd:choice&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;    &amp;lt;/xsd:complexType&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;  &amp;lt;/xsd:element&amp;gt;&lt;/span&gt;&lt;br style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;" /&gt;
&lt;span style="font-style: italic; color: rgb(51, 153, 102); font-weight: bold;"&gt;&amp;lt;/xsd:schema&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;font size="3" style="font-weight: bold;"&gt;.... take a close look at the elements, then frame the elements for each row in a SELECT statement...&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;font size="3"&gt;&lt;span style="font-weight: bold;"&gt;(Here's how you would write that statement)&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;SELECT &lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;SalesRep&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;First&amp;gt;' + first + '&amp;lt;/First&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Last&amp;gt;' + last + '&amp;lt;/Last&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Email&amp;gt;' + email + '&amp;lt;/Email&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;  case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Mobile is null then '&amp;lt;Mobile&amp;gt;&amp;lt;/Mobile&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Mobile = '' then '&amp;lt;Mobile&amp;gt;&amp;lt;/Mobile&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;Mobile&amp;gt;' + PhoneCode + '-' + Mobile + '&amp;lt;/Mobile&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Phone is null then '&amp;lt;Phone&amp;gt;&amp;lt;/Phone&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Phone = '' then '&amp;lt;Phone&amp;gt;&amp;lt;/Phone&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;Phone&amp;gt;' + PhoneCode + '-' + Phone + '&amp;lt;/Phone&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;  case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Fax is null then '&amp;lt;Fax&amp;gt;&amp;lt;/Fax&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Fax = '' then '&amp;lt;Fax&amp;gt;&amp;lt;/Fax&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;Fax&amp;gt;' + PhoneCode + '-' + Fax + '&amp;lt;/Fax&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Address1&amp;gt;' + Address1 + '&amp;lt;/Address1&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Address2 is null then '&amp;lt;Address2&amp;gt;&amp;lt;/Address2&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when Address2 = '' then '&amp;lt;Address2&amp;gt;&amp;lt;/Address2&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;Address2&amp;gt;' + Address2 + '&amp;lt;/Address2&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when City is null then '&amp;lt;City&amp;gt;&amp;lt;/City&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when City = '' then '&amp;lt;City&amp;gt;&amp;lt;/City&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;City&amp;gt;' + City + '&amp;lt;/City&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when State is null then '&amp;lt;State&amp;gt;&amp;lt;/State&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when State = '' then '&amp;lt;State&amp;gt;&amp;lt;/State&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;State&amp;gt;' + State + '&amp;lt;/State&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Country&amp;gt;' + Country + '&amp;lt;/Country&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;CountryName&amp;gt;' + CountryName + '&amp;lt;/CountryName&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Postal&amp;gt;' + Postal + '&amp;lt;/Postal&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;Territory&amp;gt;' + Territory + '&amp;lt;/Territory&amp;gt;' +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   case&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when TerritoryState is null then '&amp;lt;TerritoryState&amp;gt;&amp;lt;/TerritoryState&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    when TerritoryState = '' then '&amp;lt;TerritoryState&amp;gt;&amp;lt;/TerritoryState&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;    else '&amp;lt;TerritoryState&amp;gt;' + TerritoryState + '&amp;lt;/TerritoryState&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt;   end&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; +&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; '&amp;lt;/SalesRep&amp;gt;'&lt;/span&gt;&lt;br style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;" /&gt;
&lt;span style="color: rgb(153, 51, 102); font-style: italic; font-weight: bold;"&gt; FROM Metro_SalesForce&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;font size="3"&gt;&lt;span style="font-weight: bold;"&gt;This statement yields rows that will look like this:&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic; color: rgb(128, 128, 128); font-weight: bold;"&gt;&amp;lt;SalesRep&amp;gt;&amp;lt;First&amp;gt;Jack&amp;lt;/First&amp;gt;&amp;lt;Last&amp;gt;Sprat&amp;lt;/Last&amp;gt;&amp;lt;Email&amp;gt;Jack.Sprat@metro-design-dev.com&amp;lt;/Email&amp;gt;&amp;lt;Mobile&amp;gt;1-678-999-9999&amp;lt;/Mobile&amp;gt;&amp;lt;Phone&amp;gt;1-770-999-8888&amp;lt;/Phone&amp;gt;&amp;lt;Fax&amp;gt;&amp;lt;/Fax&amp;gt;&amp;lt;Address1&amp;gt;1313 Mockingbird Lane&amp;lt;/Address1&amp;gt;&amp;lt;Address2&amp;gt;&amp;lt;/Address2&amp;gt;&amp;lt;City&amp;gt;Conyers&amp;lt;/City&amp;gt;&amp;lt;State&amp;gt;GA&amp;lt;/State&amp;gt;&amp;lt;Country&amp;gt;USA&amp;lt;/Country&amp;gt;&amp;lt;CountryName&amp;gt;United States&amp;lt;/CountryName&amp;gt;&amp;lt;Postal&amp;gt;30013&amp;lt;/Postal&amp;gt;&amp;lt;Territory&amp;gt;Georgia&amp;lt;/Territory&amp;gt;&amp;lt;TerritoryState&amp;gt;GA&amp;lt;/TerritoryState&amp;gt;&amp;lt;/SalesRep&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;font size="3"&gt;&lt;br /&gt;
....&lt;span style="font-weight: bold;"&gt;Once you've executed the statement in SQL Server here's what's next.&lt;/span&gt;... &lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;font size="2"&gt;1. Right click on the results grid to save the file in .csv format. &lt;br /&gt;
2. Open the file in Microsoft EXCEL. (Do NOT double click on the file to open Microsoft EXCEL.  Instead, open MS EXCEL first--then follow the dialog box with the format prompting to assure that you are using comma delimited, rather than fixed-length or tab formatting.)&lt;br /&gt;
3. In EXCEL, do a Find and &lt;span style="font-style: italic;"&gt;replace all  &lt;/span&gt;-- searching for any special characters such as '&amp;amp;', etc.&lt;br /&gt;
4. Save the file.&lt;br /&gt;
5. Copy the file -- but use the file type &lt;span style="font-weight: bold;"&gt;.xml&lt;/span&gt; instead of .csv&lt;br /&gt;
6. Wrap the XML you have with the appropriate utf header AND node to manage the recursion of the rows (e.g. &amp;lt;SalesReps&amp;gt; . In this example that would be:&lt;br /&gt;
&lt;/font&gt; &lt;br /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&lt;/span&gt;&lt;br style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);" /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;SalesReps&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
7. End the management node at the tail end of the file. In this case that would be:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;/SalesReps&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
8. Save the file-- which would look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&lt;/span&gt;&lt;br style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);" /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;SalesReps&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-style: italic; color: rgb(128, 128, 128); font-weight: bold;"&gt;&amp;lt;SalesRep&amp;gt;&amp;lt;First&amp;gt;Jack&amp;lt;/First&amp;gt;&amp;lt;Last&amp;gt;Sprat&amp;lt;/Last&amp;gt;&amp;lt;Email&amp;gt;Jack.Sprat@metro-design-dev.com&amp;lt;/Email&amp;gt;&amp;lt;Mobile&amp;gt;1-678-999-9999&amp;lt;/Mobile&amp;gt;&amp;lt;Phone&amp;gt;1-770-999-8888&amp;lt;/Phone&amp;gt;&amp;lt;Fax&amp;gt;&amp;lt;/Fax&amp;gt;&amp;lt;Address1&amp;gt;1313 Mockingbird Lane&amp;lt;/Address1&amp;gt;&amp;lt;Address2&amp;gt;&amp;lt;/Address2&amp;gt;&amp;lt;City&amp;gt;Conyers&amp;lt;/City&amp;gt;&amp;lt;State&amp;gt;GA&amp;lt;/State&amp;gt;&amp;lt;Country&amp;gt;USA&amp;lt;/Country&amp;gt;&amp;lt;CountryName&amp;gt;United States&amp;lt;/CountryName&amp;gt;&amp;lt;Postal&amp;gt;30013&amp;lt;/Postal&amp;gt;&amp;lt;Territory&amp;gt;Georgia&amp;lt;/Territory&amp;gt;&amp;lt;TerritoryState&amp;gt;GA&amp;lt;/TerritoryState&amp;gt;&amp;lt;/SalesRep&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-weight: bold; font-style: italic; color: rgb(153, 51, 102);"&gt;&amp;lt;/SalesReps&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
9. Double click on the file to open it. If the file comes up in your default browser or IDE bench you're DONE! If not, check your XML header/trailer first. If it still won't come up check for other possible escape characters using EXCEL.&lt;br /&gt;
&lt;br /&gt;
&lt;font size="4"&gt;&lt;span style="font-weight: bold;"&gt;That's all there is to it!&lt;/span&gt;&lt;/font&gt; &lt;font size="3"&gt;(Really)&lt;/font&gt;  &lt;img src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/shades_smile.gif" alt="" /&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=132496"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=132496" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/132496.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132496.aspx</guid>
            <pubDate>Fri, 29 May 2009 23:36:18 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/132496.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132496.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/132496.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/132496.aspx</trackback:ping>
        </item>
        <item>
            <title>SQL Update Statement - using SubSelect</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132495.aspx</link>
            <description>&lt;font size="3"&gt;&lt;br /&gt;
This is a simple, but helpful example of changing a boolean or bit flag in a table to&lt;span style="font-weight: bold;"&gt; 'True'&lt;/span&gt; when the condition in the subSelect is met.  In this context, the SQL statement finds all the cases where a sales agent's email exists in the &lt;span style="color: rgb(153, 51, 102);"&gt;Metro_SalesForce&lt;/span&gt; table &lt;span style="font-style: italic;"&gt;and&lt;/span&gt; exists in the related table &lt;span style="color: rgb(153, 51, 102);"&gt;Metro_SalesForceMult&lt;/span&gt;. The&lt;span style="color: rgb(153, 51, 102);"&gt; Metro_SalesForceMult &lt;/span&gt;table contains the USA state assignments &lt;span style="font-style: italic;"&gt;only&lt;/span&gt; for sales agents representing &lt;span style="font-style: italic;"&gt;more than&lt;/span&gt; a single state.&lt;br /&gt;
&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br style="font-weight: bold;" /&gt;
&lt;font size="2" style="font-style: italic; color: rgb(153, 51, 102); font-weight: bold;"&gt;UPDATE Metro_SalesForce&lt;br /&gt;
 SET multipleStates = 'True'&lt;br /&gt;
WHERE Metro_SalesForce.email in&lt;br /&gt;
  ( &lt;br /&gt;
     Select x.email&lt;br /&gt;
       From Metro_SalesForce x, Metro_SalesForceMult y&lt;br /&gt;
        Where x.email = y.email&lt;br /&gt;
  )&lt;/font&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=132495"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=132495" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/132495.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132495.aspx</guid>
            <pubDate>Fri, 29 May 2009 22:34:23 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/132495.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/05/29/132495.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/132495.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/132495.aspx</trackback:ping>
        </item>
        <item>
            <title>How do I select a value from a table into a variable in SQL Server?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/03/26/130456.aspx</link>
            <description>&lt;p&gt;Here's an example...&lt;/p&gt;
&lt;p&gt;&lt;font color="#993300"&gt;&lt;strong&gt;DECLARE @LocID&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;SELECT &lt;font color="#993300"&gt;@LocID&lt;/font&gt; = &lt;font color="#993300"&gt;LocationID&lt;/font&gt;&lt;br /&gt;
 FROM Locations&lt;br /&gt;
  WHERE LocationName = 'WAREHOUSE X'&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130456"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130456" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/130456.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/03/26/130456.aspx</guid>
            <pubDate>Thu, 26 Mar 2009 19:13:01 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/130456.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/03/26/130456.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/130456.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/130456.aspx</trackback:ping>
        </item>
        <item>
            <title>Does SQL server have an encryption function?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/03/11/130024.aspx</link>
            <description>&lt;p&gt;Yes. The functions are PWENCRYPT and PWCOMPARE. This basically allows the ability to encrypt a value on an insert/update and offer a  comparison of the value on a select. There isn't a decryption function available. &lt;/p&gt;
&lt;p&gt;Here are a few T-SQL statements to illustrate how pwencrypt/pwcompare work: &lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#993300"&gt;&lt;em&gt;&lt;strong&gt;create table  #MetroTest &lt;br /&gt;
 ( &lt;br /&gt;
   UserLogIn varchar(10), &lt;br /&gt;
   UserPass  nvarchar(256)&lt;br /&gt;
 )&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#993300"&gt;&lt;em&gt;&lt;strong&gt;insert  #MetroTest &lt;br /&gt;
  (UserLogIn,UserPass) values ( 'MaryMary', PWDENCRYPT('QuiteContrary'))&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#993300"&gt;&lt;em&gt;&lt;strong&gt;select UserLogIn, password = 'QuiteContrary', PWDCOMPARE('QuiteContrary', UserPass, 0) from #MetroTest&lt;br /&gt;
select UserLogIn, password = 'QuietContrary', PWDCOMPARE('QuietContrary', UserPass, 0) from #MetroTest&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;It is possible to write user defined functions which will encrypt/decrypt and compare. An excellent example of this is Peter Larsson's RC4 hash:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76258&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130024"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=130024" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/130024.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/03/11/130024.aspx</guid>
            <pubDate>Wed, 11 Mar 2009 21:38:52 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/130024.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/03/11/130024.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/130024.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/130024.aspx</trackback:ping>
        </item>
        <item>
            <title>Can I insert multiple rows with a single insert statement?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2009/01/13/128632.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;&lt;font color="#ff6600" size="5"&gt;Yes!&lt;/font&gt;&lt;/strong&gt;&lt;font size="4"&gt; &lt;/font&gt;&lt;font size="3"&gt;.....(Now, we're not talking about&lt;em&gt; bulk&lt;/em&gt; inserts--which is a completely &lt;em&gt;different &lt;/em&gt;task... we're just talking about a small number of rows that need to get inserted into a relatively static table)..&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff6600" size="3"&gt;Typically folks do something like this to quickly add rows into a reference  table:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;em&gt;&lt;strong&gt;&lt;font color="#000080"&gt;INSERT INTO ReasonType&lt;br /&gt;
(DisplayName,Description)&lt;br /&gt;
VALUES&lt;br /&gt;
('Delay','Reason for a project delay')&lt;br /&gt;
GO&lt;br /&gt;
INSERT into ReasonType&lt;br /&gt;
(DisplayName,Description)&lt;br /&gt;
&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;font face="Arial" color="#000080"&gt;&lt;em&gt;&lt;strong&gt;VALUES&lt;br /&gt;
('Cancellation','Reaon for a project cancellation')&lt;br /&gt;
GO&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff6600" size="3"&gt;...but it is possible to do this instead...&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#000080"&gt;&lt;strong&gt;&lt;em&gt;INSERT INTO ReasonType  (DisplayName, Description)&lt;br /&gt;
    SELECT  'Delay' ,'Reason for project delay'&lt;br /&gt;
    UNION ALL&lt;br /&gt;
SELECT  'Cancellation' ,'Reason for project cancellation'&lt;br /&gt;
    UNION ALL&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=128632"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=128632" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/128632.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2009/01/13/128632.aspx</guid>
            <pubDate>Tue, 13 Jan 2009 20:54:06 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/128632.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2009/01/13/128632.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/128632.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/128632.aspx</trackback:ping>
        </item>
        <item>
            <title>How do I change the owner of my table in SQL Server?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2008/08/27/124737.aspx</link>
            <description>&lt;p&gt;&lt;font size="3"&gt;Go to the ms sql server database instance that has the table object and open a new query window. Execute the system stored proc called &lt;strong&gt;sp_changeobjectowner.&lt;/strong&gt; The 2 parameters it needs to run are: (1) the current owner+object name and (2) the target owner. Take a look at the example below:&lt;/font&gt;&lt;/p&gt;
&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;exec &lt;font color="#800000" size="2"&gt;sp_changeobjectowner&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;'METRO\paula.EmployeeContact'&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;'dbo'&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;When the stored proc is completed, refresh the instance. &lt;font size="2"&gt;The table will then be owned by dbo. In this example, the table would display as dbo.EmployeeContact&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/font&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124737"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124737" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/124737.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2008/08/27/124737.aspx</guid>
            <pubDate>Wed, 27 Aug 2008 22:40:59 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/124737.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2008/08/27/124737.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/124737.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/124737.aspx</trackback:ping>
        </item>
        <item>
            <title>Why does "use db" with a hyphen throw "Incorrect syntax near '-'" ?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124163.aspx</link>
            <description>&lt;p&gt;&lt;font size="3"&gt;I think this SQL Server x.x  oddity goes back to the old Sybase 4 days!&lt;/font&gt; &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/confused_smile.gif" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;If you want to use a database name that's been dubbed something like 'paula-objects' and type out:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;use paula-objects&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;then execute the request, you'll get the error message: &lt;font color="#993300"&gt;&lt;em&gt; &lt;/em&gt;&lt;em&gt;Incorrect syntax near '&lt;strong&gt;-'&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font color="#993300" size="3"&gt;just type this instead:&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#993300" size="3"&gt;use [paula-objects]&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3"&gt;when you execute the request, the syntax error will clear up! &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/thumbs_up.gif" /&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#993300" size="3"&gt;&lt;/font&gt;&lt;font size="1"&gt;&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124163"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124163" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/124163.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124163.aspx</guid>
            <pubDate>Thu, 31 Jul 2008 21:26:58 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/124163.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124163.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/124163.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/124163.aspx</trackback:ping>
        </item>
        <item>
            <title>Does SQL Server have an "ALL_TAB_COLUMNS" feature?</title>
            <link>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124161.aspx</link>
            <description>&lt;h3&gt;&lt;font style="background-color: rgb(255, 255, 255);"&gt;&lt;font size="5"&gt;Yes!&lt;/font&gt;     &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/teeth_smile.gif" /&gt;&lt;/font&gt;&lt;/h3&gt;
&lt;p&gt;&lt;font size="3"&gt;For those Oracle X.Xers finding themselves working in the SQL Server 2005/2008 world these days, you'll be happy to know all you need to do is:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;1. Open up a new execute query window.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;2. Type the following:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;em&gt;&lt;font size="3"&gt;&lt;font color="#993300"&gt;&lt;strong&gt;use&lt;/strong&gt;&lt;/font&gt; &lt;font color="#993300"&gt;FavoriteDbInstance&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#993300" size="3"&gt;&lt;em&gt;&lt;strong&gt;SELECT&lt;br /&gt;
 table_name,column_name&lt;br /&gt;
FROM&lt;br /&gt;
 information_schema.columns&lt;br /&gt;
WHERE&lt;br /&gt;
  column_name LIKE&lt;/strong&gt; '%whateverYouWant%'&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;That's it!:-) Your table names with the column name you are searching for should show up!&lt;/font&gt;&lt;/p&gt;
&lt;font size="2"&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;/font&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124161"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124161" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/AskPaula/aggbug/124161.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Paula DiTallo  2007-2009 All Rights Reserved</dc:creator>
            <guid>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124161.aspx</guid>
            <pubDate>Thu, 31 Jul 2008 21:10:21 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/AskPaula/comments/124161.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/AskPaula/archive/2008/07/31/124161.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/AskPaula/comments/commentRss/124161.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/AskPaula/services/trackbacks/124161.aspx</trackback:ping>
        </item>
    </channel>
</rss>