<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6711727</id><updated>2009-01-05T09:34:57.599-06:00</updated><title type='text'>Programmabilities Blog</title><subtitle type='html'>Post to programmabilities[dot]post[at]blogger[dot]com or 1-415-856-0205 x7678[POST].</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/index.php'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default?start-index=26&amp;max-results=25'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6711727.post-7788670850289466923</id><published>2008-10-27T11:15:00.018-05:00</published><updated>2009-01-01T09:39:52.538-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programmabilities'/><title type='text'>Remove phone's SIM lock online:</title><content type='html'>&lt;p&gt;
 &lt;a href="http://simlock.gsmservice.pl" title="SIM lock"&gt;http://simlock.gsmservice.pl&lt;/a&gt;
&lt;/p&gt; 
&lt;p&gt; 
 Sellect-box choice: "Motorola W315"
 &lt;/br&gt;  
 "USA / T-Mobile"
&lt;/p&gt;
&lt;p&gt;   
 Then type into the phone: &lt;tt&gt;*#06#&lt;/tt&gt;
 &lt;/br&gt; 
 &lt;tt&gt;
  &lt;a href="http://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity" title=""&gt;&lt;acronym title="International Mobile Equipment Identity"&gt;IMEI&lt;/acronym&gt;&lt;/a&gt;:
 &lt;/tt&gt; [then enter this into website]
&lt;/p&gt;
&lt;p&gt;
 Put check in check-box
&lt;/p&gt;
&lt;p&gt;  
 Click &lt;strong&gt;Submit&lt;/strong&gt; button.
&lt;/p&gt;
&lt;h4&gt;Purchasing info&lt;/h4&gt;
 &lt;ol&gt;
  &lt;li&gt;A "pre-paid" &lt;acronym title="Subscriber Identity Module"&gt;SIM&lt;/acronym&gt; card.&lt;/li&gt;
  &lt;li&gt;"Roaming".&lt;/li&gt;
  &lt;li&gt;To check my remaining minutes type this: &lt;tt&gt;*120#&lt;/tt&gt;&lt;/li&gt;
 &lt;/ol&gt;
 &lt;p&gt;My future phone: &lt;a href="http://microsoft.com/windowsmobile/" title="Windows Mobile"&gt;microsoft.com/windowsmobile&lt;/a&gt; 7.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/7788670850289466923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=7788670850289466923' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7788670850289466923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7788670850289466923'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/10/remove-phones-sim-lock-online.html' title='Remove phone&apos;s &lt;acronym title=&quot;Subscriber Identity Module&quot;&gt;SIM&lt;/acronym&gt; lock online:'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-3592177880784028917</id><published>2008-09-18T19:38:00.032-05:00</published><updated>2008-10-12T03:59:06.518-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programmabilities'/><title type='text'>IIS hosting</title><content type='html'>&lt;h5&gt;TODO: &lt;/h5&gt;
&lt;ol&gt;
 &lt;li&gt;From a PC use the &lt;em&gt;Windows Professional&lt;/em&gt;'s &lt;acronym title="Internet Information Services"&gt;IIS&lt;/acronym&gt; to host an &lt;a href="http://en.wikipedia.org/wiki/ASP.NET" title="asp"&gt;&lt;tt&gt;.aspx&lt;/tt&gt;&lt;/a&gt; page &lt;u&gt;that uses &lt;em&gt;SQL Server Express 2005&lt;/em&gt;&lt;/u&gt;. 
  &lt;ol&gt;
   &lt;li&gt;&lt;a href="http://www.boutell.com/newfaq/creating/hostmyown.html" title="IIS"&gt;boutell.com/newfaq/creating/hostmyown.html&lt;/a&gt; &lt;/li&gt;
   &lt;li&gt;Include some notes &amp; directions howto:
    &lt;ol&gt;
     &lt;li&gt;Open up the &lt;acronym title="Internet Information Services"&gt;IIS&lt;/acronym&gt; window on the PC by doing so: &lt;strong&gt;&gt;My Computer &gt;Manage &gt;Services and Applications &gt;IIS&lt;/strong&gt;&lt;/li&gt;
     &lt;li&gt;&lt;strong&gt;&gt;Local Disk E: &gt;Inetpub &gt;ftproot&lt;/strong&gt; (Go here to check the stuff that gets hosted (Thus FTP to here).)&lt;/li&gt;
     &lt;li&gt;Then go to &lt;tt&gt;http://localhost/&lt;/tt&gt; in a browser's address bar to view the test &lt;tt&gt;.aspx&lt;/tt&gt; page&lt;/li&gt;
     &lt;li&gt;Etc... &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;/ol&gt;
 &lt;/li&gt;
 &lt;li&gt;Take the dynamic &lt;acronym title="Internet Protocol"&gt;IP&lt;/acronym&gt; of our &lt;a href="http://en.wikipedia.org/wiki/Internet_Information_Services" title="IIS"&gt;&lt;acronym title="Internet Information Services"&gt;IIS&lt;/acronym&gt;&lt;/a&gt; and put it in the browser's address bar to test.  (Ex. &lt;tt&gt;http://192.168.254.2/Default.aspx&lt;/tt&gt;)&lt;/li&gt;
 &lt;li&gt;Get a static &lt;acronym title="Internet Protocol"&gt;IP&lt;/acronym&gt; from &lt;a href="http://dyndns.com/" title="Dynamic DNS"&gt;DynDNS.com&lt;/a&gt; and add it to the &lt;acronym title="Internet Protocol"&gt;IP&lt;/acronym&gt; input field in mydomainname.com's GoDaddy dashboard.  Thus mydomainname.com with &lt;a href="http://GoDaddy.com/" title="GoDaddy"&gt;GoDaddy&lt;/a&gt; will point to the &lt;acronym title="Internet Protocol"&gt;IP&lt;/acronym&gt; of our &lt;acronym title="Internet Information Services"&gt;IIS&lt;/acronym&gt; server hosting PC.&lt;/li&gt;
 &lt;li&gt;We are getting an error when our page includes a database stuff: &lt;a href="http://aspspider.com/resources/Resource170.aspx" title="IIS"&gt;aspspider.com/resources/Resource170.aspx&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;Add mydomainname.com to here &lt;a href="https://domains.live.com/manage/" title="domains.live.com"&gt;domains.live.com&lt;/a&gt; (What this service does, I do not know yet.)&lt;/li&gt;

&lt;/ol&gt;

&lt;h5&gt;Much later TODO: &lt;/h5&gt;
&lt;ol&gt;
 &lt;li&gt;Set up a mail-server on the said &lt;acronym title="Internet Information Services"&gt;IIS&lt;/acronym&gt; (or activate it if one is included with it)&lt;/li&gt;
 &lt;li&gt;Take the DNS settings from Hotmail and add them so email messages to mydomainname.com's domain name get sent to his said domain name (ex. bob@mydomainname.com).&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://hostlibrary.com/UnderstandingMXrecordskhu.html" title="Mail Exchange Records"&gt;&lt;acronym title="Mail Exchange Records"&gt;MX&lt;/acronym&gt; (Mail Exchange) records&lt;/a&gt; are used in &lt;acronym title="DNS"&gt;DNS&lt;/acronym&gt; records (or Zone files) to specify how email should be routed. 
 &lt;/li&gt;
&lt;/ol&gt;

&lt;h5&gt;Extras&lt;/h5&gt;
&lt;ol&gt;
 &lt;li&gt;With &lt;a href="http://iis.net/downloads/default.aspx?tabid=34&amp;g=6&amp;i=1691" title="IIS7 Rewrite module"&gt;&lt;acronym title="Internet Information Services 7"&gt;IIS7&lt;/acronym&gt; Rewrite module&lt;/a&gt; a website can have a &lt;tt&gt;.htaccess&lt;/tt&gt; file.  See &lt;a href="http://hanselman.com/blog/ASPNETMVCAndTheNewIIS7RewriteModule.aspx" title=".htaccess"&gt;hanselman.com/blog/ASPNETMVCAndTheNewIIS7RewriteModule.aspx&lt;/a&gt;.
 &lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://iis.net/' title='IIS hosting'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/3592177880784028917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=3592177880784028917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/3592177880784028917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/3592177880784028917'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/09/iis-hosting.html' title='IIS hosting'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-7827207097077833411</id><published>2008-09-15T18:50:00.002-05:00</published><updated>2008-09-15T18:54:51.120-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programmabilities'/><title type='text'>"Wireless-n pci Adaptor."</title><content type='html'>&lt;p&gt;"Wireless-n pci Adaptor."
&lt;/p&gt;
&lt;p&gt;
Rangework 4X
&lt;/br&gt;
Speedwork 12X
&lt;/br&gt;
Model no WMP300N
&lt;/br&gt;
Made by Linksys
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/7827207097077833411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=7827207097077833411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7827207097077833411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7827207097077833411'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/09/wireless-n-pci-adaptor.html' title='&quot;Wireless-n pci Adaptor.&quot;'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-2348559346032249557</id><published>2008-09-11T11:32:00.000-05:00</published><updated>2008-09-11T11:33:55.941-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>missing-menu-options-in-visual-studio-2005</title><content type='html'>http://blogs.vertigo.com/personal/keithc/Blog/archive/2007/07/20/missing-menu-options-in-visual-studio-2005.aspx&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://blogs.vertigo.com/personal/keithc/Blog/archive/2007/07/20/missing-menu-options-in-visual-studio-2005.aspx' title='missing-menu-options-in-visual-studio-2005'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/2348559346032249557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=2348559346032249557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/2348559346032249557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/2348559346032249557'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/09/missing-menu-options-in-visual-studio.html' title='missing-menu-options-in-visual-studio-2005'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-870457878130100533</id><published>2008-07-11T16:25:00.003-05:00</published><updated>2008-07-11T16:48:43.010-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>VB: Regular Expressions, etc...</title><content type='html'>&lt;pre&gt;Regex.IsMatch("subject", "regex") ' Checks if the regular expression 
' matches the subject string.&lt;/pre&gt;


&lt;h3&gt;VB: using Controls collection&lt;/h3&gt;
&lt;pre&gt;' Clears textbox controls' content on the form using 
' Controls collection.
Dim intX As Integer
Do While intX &lt; text = "" intx =" intX"&gt;&lt;/pre&gt;


&lt;h3&gt;ViewState("UrlReferrer")&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Sub Page_Load()
    If Page.IsPostBack = False Then
        ' Store URL Referrer to return to home page.
        ViewState("UrlReferrer") = Me.Request.UrlReferrer.ToString()
    End If
End Sub

Sub CancelBtn_Click()
    ' Redirect back to the home page.
    Me.Response.Redirect(CType(ViewState("UrlReferrer"), String))
End Sub&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://15seconds.com/issue/010301.htm' title='VB: Regular Expressions, etc...'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/870457878130100533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=870457878130100533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/870457878130100533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/870457878130100533'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/vb-regular-expressions.html' title='VB: Regular Expressions, etc...'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-6453259355989370405</id><published>2008-07-11T16:22:00.000-05:00</published><updated>2008-07-11T16:23:04.274-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>ASP confirm</title><content type='html'>&lt;pre&gt;&lt;code&gt; gt-a-s-p:button id="ConfirmOnClick" runat="server" onclientclick="return
confirm('You\'re sure you want to do this?');" text="Launch Airstrike"&gt; lt/ a-s-p:button&gt; &lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/6453259355989370405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=6453259355989370405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6453259355989370405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6453259355989370405'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/asp-confirm.html' title='ASP confirm'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-8414018883532230256</id><published>2008-07-11T16:17:00.000-05:00</published><updated>2008-07-11T16:18:21.178-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>ASP .NET set focus to a control (javascript)</title><content type='html'>&lt;pre&gt;body onload="javascript:document.forms[0].txtFirst.focus();"&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://extremeexperts.com/Net/CodeSnippets/SettingFocustoElementAfterPostback.aspx' title='ASP .NET set focus to a control (javascript)'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/8414018883532230256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=8414018883532230256' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8414018883532230256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8414018883532230256'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/asp-net-set-focus-to-control-javascript.html' title='ASP .NET set focus to a control (javascript)'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-2422572813420366097</id><published>2008-07-10T13:09:00.005-05:00</published><updated>2009-01-05T09:34:57.632-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>check for DbNull</title><content type='html'>Check for &lt;tt&gt;DbNull&lt;/tt&gt;:
&lt;pre&gt;&lt;_a s p :Label runat="server" ID="Label6" Text='&lt; % # IIF(Typeof(
Eval("ShippedDate")) IS DbNull,"No Date",Eval("ShippedDate")) % &gt;' /&gt;&lt;/pre&gt;

or&lt;/br&gt;

&lt;code&gt;&lt;_%# ((Convert.IsDBNull ...&lt;/code&gt; I am telling &lt;acronym title="Active Server Pages"&gt;ASP&lt;/acronym&gt; to give the picture a height value only if the value in the database is not &lt;tt&gt;NULL&lt;/tt&gt;. I could've done this in the &lt;acronym title="Structured Query Language"&gt;SQL&lt;/acronym&gt; instruction, but I decided to do it inside the Datalist.
&lt;pre&gt;
&lt;_%# ((Convert.IsDBNull(DataBinder.Eval(Container.DataI tem, "height"))) ? "" : "height = " + DataBinder.Eval(Container.DataItem, "height")) %&gt; 
&lt;/pre&gt;

Or maybe this for &lt;tt&gt;NULL&lt;/tt&gt;s?: &lt;code&gt;&lt;_%# Eval("First", "{0}, ") %_&gt;&lt;/code&gt;

&lt;/br&gt;Or check for &lt;tt&gt;NULL&lt;/tt&gt; in T-&lt;acronym title="Structured Query Language"&gt;SQL&lt;/acronym&gt;: &lt;/br&gt;
&lt;code&gt;ISNULL(check_expression, replacement_value)&lt;/code&gt; If 1st is &lt;tt&gt;NULL&lt;/tt&gt;, return 2cnd.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/2422572813420366097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=2422572813420366097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/2422572813420366097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/2422572813420366097'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/check-for-dbnull.html' title='check for DbNull'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-166217418438455747</id><published>2008-07-03T15:06:00.002-05:00</published><updated>2008-07-15T14:29:25.857-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Search Stored Procedures</title><content type='html'>This searches all the Stored Procedures in 1 SQL Server database for the said string. I tested it in Query Analyzer and it found all the Stored Procedures that had occurrences of my "lq_Campaign" in 1 database:
&lt;pre&gt;SELECT ROUTINE_NAME, ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%lq_Campaign%'
AND ROUTINE_TYPE='PROCEDURE'&lt;/pre&gt;

&lt;h4&gt;Here is another way&lt;/h4&gt;
&lt;p&gt;
Below query you can searcg any table, stored procedure or views what ever has that expression as a column or object name.
&lt;/p&gt;
&lt;pre&gt;SELECT * FROM SYSOBJECTS WHERE ID IN (SELECT ID FROM SYSCOMMENTS WHERE TEXT LIKE ‘%PRODUC%’)&lt;/pre&gt;
&lt;p&gt;
The query produced all the object names--where ever it finds expression like ‘PRODUC‘.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://stevesmithblog.com/blog/search-stored-procedures/' title='Search Stored Procedures'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/166217418438455747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=166217418438455747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/166217418438455747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/166217418438455747'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/search-stored-procedures.html' title='Search Stored Procedures'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4296968935995741067</id><published>2008-07-03T08:28:00.002-05:00</published><updated>2008-07-03T08:32:40.638-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Model View Controller</title><content type='html'>&lt;ul&gt;
&lt;li&gt;Primary goal is to separate the things that change from the things that do not.&lt;/li&gt;
&lt;li&gt;Model is the data representation.&lt;/li&gt;
&lt;li&gt;View is the presentation of the model.&lt;/li&gt;
&lt;li&gt;Controller responds to events and modifies the model.&lt;/li&gt;
&lt;li&gt;Model notifies the views to update the presentation.&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4296968935995741067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4296968935995741067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4296968935995741067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4296968935995741067'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/07/model-view-controller.html' title='Model View Controller'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4298346551749906914</id><published>2008-05-09T12:51:00.017-05:00</published><updated>2008-06-23T13:32:03.557-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL Server 2005 Reports: tips</title><content type='html'>&lt;ACRONYMN title="SQL Server Reporting Services"&gt;SSRS&lt;/ACRONYMN&gt;:
&lt;ul&gt;

&lt;li&gt;
Page Header:
&lt;ul&gt;
&lt;li&gt;
TextBox via Expression...: &lt;code&gt;=Globals.ReportFolder &amp;amp; Globals.ReportName
&lt;/code&gt;
&lt;/li&gt;

&lt;/ul&gt;
&lt;/li&gt;


&lt;li&gt;
Page Footer:
&lt;ul&gt;
&lt;li&gt;
Page Footer: TextBox via Expression...: &lt;code&gt;=Format(Globals!PageNumber) &amp; " of " &amp; Format(Globals!TotalPages) &amp; " pages"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;="Printed by " &amp; User!UserID &amp; " on " &amp; DateTime.Now.ToString()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;="Execution Time: " &amp;
IIF(System.DateTime.Now.Subtract(Globals!ExecutionTime).TotalSeconds &lt; 1, "0 seconds", 
(
IIF(System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours &gt; 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours &amp; " hour(s), ", "") &amp;
IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes &gt; 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes &amp; " minute(s), ", "") &amp;
IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds &gt; 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds &amp; " second(s)", ""))
)&lt;/code&gt;
&lt;/li&gt;

&lt;/ul&gt;
&lt;/li&gt;



&lt;li&gt;
Body: 
&lt;ul&gt;
&lt;li&gt;
TextBox via Expression...: &lt;code&gt;=Format(Sum(Fields!Account.Value), "C0")&lt;/code&gt; (Works if column is numeric data type.)
&lt;/li&gt;
&lt;li&gt;
Alternate rows by adding the following to the row via Properties &gt; BackgroundColor expression of your detail row: 
&lt;code&gt;=IIF(RowNumber(Nothing) Mod 2, "White", "Gainsboro")&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;

&lt;/ul&gt;


&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/aa337293.aspx"&gt;msdn.microsoft.com/en-us/library/aa337293.aspx&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
*&lt;a href="http://en.csharp-online.net/Building_Reports_in_SQL_Server_2005"&gt;en.csharp-online.net/Building_Reports_in_SQL_Server_2005&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
*&lt;a href="http://ssw.com.au/Ssw/Standards/Rules/RulesToBetterSQLReportingServices.aspx"&gt;ssw.com.au/Ssw/Standards/Rules/RulesToBetterSQLReportingServices.aspx&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://download.microsoft.com/download/1/3/4/134644fd-05ad-4ee8-8b5a-0aed1c18a31e/reporting_services_design.doc"&gt;download.microsoft.com/download/1/3/4/134644fd-05ad-4ee8-8b5a-0aed1c18a31e/reporting_services_design.doc&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://notethat.blogspot.com/2007/10/reporting-services-tips-tricks-and.html"&gt;notethat.blogspot.com/2007/10/reporting-services-tips-tricks-and.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://msdn.microsoft.com/en-us/express/aa718391.aspx' title='SQL Server 2005 Reports: tips'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4298346551749906914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4298346551749906914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4298346551749906914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4298346551749906914'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/05/sql-server-2005-reports-tips.html' title='SQL Server 2005 Reports: tips'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4264024532427032550</id><published>2008-03-28T17:23:00.027-05:00</published><updated>2008-04-21T20:24:49.074-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SSIS &gt; VS Export wizard: table to Excel</title><content type='html'>After using the &lt;acronym title="SQL Server Integration Services"&gt;SSIS&lt;/acronym&gt; &gt; VS &lt;strong&gt;Export&lt;/strong&gt; wizard for table to Excel, you must add &lt;code&gt;DROP TABLE Query&lt;/code&gt; to the &lt;strong&gt;Event Handlers&lt;/strong&gt; tab or else it will error the second time it is reRun.
&lt;a href="http://programmabilities.com/blog/uploaded_images/ssis_Export_Excel-702445.bmp"&gt;&lt;img style="display:block; margin:0px auto 5px; text-align:center;cursor:pointer; cursor:hand;" src="http://programmabilities.com/blog/uploaded_images/ssis_Export_Excel-702314.bmp" border="0" alt="SSIS" /&gt;&lt;/a&gt;

&lt;h3&gt;&lt;acronym title="SQL Server Integration Services"&gt;SSIS&lt;/acronym&gt; &gt; VS &lt;strong&gt;Import&lt;/strong&gt; wizard for Excel to table: &lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;Be sure to only checkmark &lt;tt&gt;Results$&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;Be sure to Select Delete table option.&lt;/li&gt;
&lt;li&gt;Be sure to Change &lt;tt&gt;Results$&lt;/tt&gt; name to Destination table name.&lt;/li&gt;
&lt;li&gt;If there is an error, it is often because a row in Excel has a NULL but the table column is NOT NULL (so add a blank to the Excel field).&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://microsoft.com/sql/technologies/integration/default.mspx' title='SSIS &gt; VS Export wizard: table to Excel'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4264024532427032550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4264024532427032550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4264024532427032550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4264024532427032550'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/03/ssis-vs-export-wizard-table-to-excel.html' title='SSIS &gt; VS Export wizard: table to Excel'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-8323002143786483659</id><published>2008-03-07T14:43:00.005-06:00</published><updated>2008-04-18T11:27:02.493-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb'/><title type='text'>ReplaceCommasWithPipes.vbs</title><content type='html'>&lt;pre&gt;' Currently this VBScript is set to replace-commas-with-pipes for every file that is 
'in the folder where this VBScript sits:
' Before run it do the following:
' 1. Open VBScript in text editor
' 2. Set the parameters:
'        cFolder_Name = "." ' current directory
'        cOnlyOneFile = False ' set to True if I want to process only one file with name set below
'        cOnlyFileName = "thisfile.csv"
' 3. Place the VBScript into the target folder
' 4. Run it by double-click
' Notes: http://groups.google.com/group/microsoft.public.excel.misc/browse_thread/thread/79ddd204ebb88287/be5d195da9241df9%23be5d195da9241df9
' -------------------------------------------------------
On Error Resume Next

const cFolder_Name = "."  ' current directory
const cOnlyOneFile = False ' False, So all files in the folder.
const cOnlyFileName = "thisfile.csv" ' Uses this if the above was True (only wanted to process 1 file).

Set oFSO = CreateObject("Scripting.FileSystemObject")

' Get folder:
Set oFolder = oFSO.GetFolder(cFolder_Name)
If oFolder Is Nothing Or Err.Number &lt;&gt; 0 Then
  MsgBox "Can't get a folder for search files. " + vbCRLF + "Please check the folder name." + vbCRLF + Err.Description, vbCritical, "Fatal error!" ' I will probably comment this out when this VBScript runs automatically as a scheduled job.
End If

Set oFiles = oFolder.Files
If Err.Number &lt;&gt; 0 Or oFiles Is Nothing Then
  MsgBox "Can't get a list of files of folder." + vbCRLF + "" + vbCRLF + Err.Description, vbCritical, "Fatal error!"                               ' I will probably comment this out when this VBScript runs automatically as a scheduled job.
End If

Cnt = CInt(0)
For Each oFile In oFiles
  If oFSO.GetExtensionName(oFile.Name) = "csv" Then ' Checks for "csv" file extension.
    If (cOnlyOneFile And (oFile.Name = cOnlyFileName)) Or (Not cOnlyOneFile) Then
      Call ReplaceSymbols(oFile.Name) 
      Cnt = Cnt + 1
    End If
  End If
Next

Senmail()

MsgBox "Replacing is done. Total number of files had been processed: " + CStr(Cnt), vbExclamation, "Message..."                                    ' I will probably comment this out when this VBScript runs automatically as a scheduled job.
' cleanup
Set oFiles = Nothing 
Set oFSO = Nothing

' Find-and-replace:
Sub ReplaceSymbols(oFileName) ' AKA "File.Name".
  If oFSO.FileExists(oFileName) Then 
    Set oTextFile = oFSO.OpenTextFile(oFileName, 1, False) 
    sFileContents = oTextFile.ReadAll 
    oTextFile.Close 

    Set oRegEx = CreateObject("VBScript.RegExp") 
    With oRegEx 
      .Global = True 
      .IgnoreCase = False 
      .Pattern = "," ' Or vbTab or "|" etc...
      sFileContents = .Replace(sFileContents, "|") 
'      .Pattern = "\|"                               ' reverse replacing
'      sFileContents = .Replace(sFileContents, ",") 
    End With 

    Set oNewFile = oFSO.CreateTextFile(oFileName, True) ' Maybe oNewFile is not needed--it just could have been called oTextFile.
    oNewFile.Write sFileContents 
    oNewFile.Close 
  End If
End Sub


' NOTE: This first way would only work on my PC, not on the other user's PCs; so I must use the second snippet, Senmail(), at the bottom. NOTE: If I made the changes marked "future testing" this might work.
' Send email to Jon Doe. --If the PC this runs on is not set right, this email will not get sent. 
'Set oMessage = CreateObject("CDO.Message") 
'oMessage.From     = "Generated automatically for AWARE &lt;jon.doe@jd.com&gt;" ' NOTE: If future testing: Comment this out.  
'oMessage.To       = "jon.doe@jd.com,jon.doe2@jd.com"       ' NOTE: If future testing: Should be ";".                                      
'oMessage.Subject  = "AWARE: Extracts done."       
'oMessage.Sender   = "jon.doe@jd.com"                       ' NOTE: If future testing: Comment this out.                                               
'oMessage.TextBody = "AWARE: Commas replaced with pipes." 
'oMessage.Send

' NOTE : Is using MS Outlook API to send e-mails. So check If MS Outlook installed on a workstation before a using of this script.
Sub Senmail()
  Set objOutlook = CreateObject("Outlook.Application")
  Set objOutlookMsg = objOutlook.CreateItem(0)
  With objOutlookMsg
' This line caused it not to even popup warning, so leave it off:   .From     = "jon.doe@jd.com &lt;jon.doe@jd.com&gt;"   ' "Generated automatically for AWARE &lt;jon.doe@jd.com&gt;"
     .To = "jon.doe@jd.com; jon.doe2@jd.com; jon.doe3@jd.com; jon.doe4@jd.com"   
     .Subject = "AWARE: Extracts done."
' This line caused it not to even popup warning, so leave it off:   .Sender   = "jon.doe@jd.com"   ' NOTE: jon.doe2's email is automatically inserted here because it is sent from here Outlook.
     .Body = "AWARE: Commas replaced with pipes. [Note: This message was generated and sent automatically.]"
     .Send
  End With
  Set objOutlookMsg = Nothing
  Set objOutlook = Nothing
End Sub&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://techtasks.com/code/viewbook/5?lang=VBScript' title='ReplaceCommasWithPipes.vbs'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/8323002143786483659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=8323002143786483659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8323002143786483659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8323002143786483659'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/03/replacecommaswithpipesvbs.html' title='ReplaceCommasWithPipes.vbs'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-6590016818001044110</id><published>2008-03-06T12:28:00.009-06:00</published><updated>2008-03-07T12:02:03.152-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Create SSIS to copy tables</title><content type='html'>&lt;p&gt;An &lt;acronym title="SQL Server Integration Services"&gt;SSIS&lt;/acronym&gt; to copy tables from a Source to a Destination.  Directions:
&lt;/p&gt;
&lt;ol&gt;
 &lt;li&gt;From &lt;strong&gt;Start&lt;/strong&gt;, select &lt;strong&gt;SQL Server Business Intelligence Development Studio&lt;/strong&gt;
 &lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;File&lt;/strong&gt;
  &lt;ol&gt;
   &lt;li&gt;&lt;strong&gt;New Project…&lt;/strong&gt;
    &lt;ol&gt;
     &lt;li&gt;&lt;strong&gt;Project types: Business Intelligence Projects&lt;/strong&gt;
     &lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Integration Services Project…&lt;/strong&gt;
    &lt;/li&gt;
    &lt;li&gt;Click “&lt;strong&gt;OK&lt;/strong&gt;”
    &lt;/li&gt;
   &lt;/ol&gt;
  &lt;/li&gt;
 &lt;/ol&gt; 
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Toolbox&lt;/strong&gt;
 &lt;ol&gt;
  &lt;li&gt;Drag "&lt;strong&gt;Transfer SQL Server Objects Task&lt;/strong&gt;" to "&lt;strong&gt;Control Flow&lt;/strong&gt;" tab's pane.
   &lt;ol&gt;
    &lt;li&gt;Right-click choose &lt;strong&gt;Edit…&lt;/strong&gt;
     &lt;ol&gt;
      &lt;li&gt;&lt;strong&gt;Objects&lt;/strong&gt;
       &lt;ol&gt;
        &lt;li&gt;&lt;strong&gt;SourceConnection &amp;#8249;New connection…&amp;#8250;&lt;/strong&gt; = NWDSQL
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;SourceDatabase&lt;/strong&gt; = NIS_empl_wage
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;DestinationConnection &amp;#8249;New connection…&amp;#8250;&lt;/strong&gt; = TESTSQL
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;DestinationDatabase&lt;/strong&gt; = NIS_empl_wage
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;CopyData&lt;/strong&gt; = &lt;strong&gt;True&lt;/strong&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;ExistingData&lt;/strong&gt; = &lt;strong&gt;Replace&lt;/strong&gt; (so not append (dup errors))
        &lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;ObjectsToCopy&lt;/strong&gt; (expand)
         &lt;ol&gt;
          &lt;li&gt;&lt;strong&gt;CopyAllTables&lt;/strong&gt; = &lt;strong&gt;True&lt;/strong&gt; (so not sprocs)
          &lt;/li&gt;
         &lt;/ol&gt;
        &lt;/li&gt;
        &lt;li&gt;Note: Leave all other options &lt;strong&gt;False&lt;/strong&gt;.  Ex., &lt;strong&gt;Table Options&lt;/strong&gt;—Can leave all these &lt;strong&gt;False&lt;/strong&gt; because 

it will just move data so Destination’s Primary Keys will remain.
        &lt;/li&gt;
        &lt;/ol&gt;
       &lt;/li&gt;
      &lt;/ol&gt;
     &lt;/li&gt;
     &lt;li&gt;Click “&lt;strong&gt;OK&lt;/strong&gt;”
     &lt;/li&gt;
    &lt;/ol&gt;
   &lt;/li&gt;
  &lt;/ol&gt;
 &lt;/li&gt;
 &lt;li&gt;Save and Run
 &lt;/li&gt;
&lt;/ol&gt;
&lt;p style="font-size:9pt;"&gt;
Note 1: Your &lt;strong&gt;Properties&lt;/strong&gt; for the &lt;strong&gt;Transfer SQL Server Objects Task&lt;/strong&gt; will now look like this: 
&lt;/p&gt;
&lt;ol style="font-size:9pt;"&gt;
 &lt;li&gt;&lt;strong&gt;CopyAllTables&lt;/strong&gt; = &lt;strong&gt;True&lt;/strong&gt; (so not sprocs)&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;CopyData&lt;/strong&gt; = &lt;strong&gt;True&lt;/strong&gt;&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;DestinationConnection&lt;/strong&gt; = TESTSQL&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;DestinationDatabase&lt;/strong&gt; = NIS_empl_wage&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;ExistingData&lt;/strong&gt; = &lt;strong&gt;Replace&lt;/strong&gt; (so not append (dup errors))&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;SourceConnection&lt;/strong&gt; = NWDSQL&lt;/li&gt;   
 &lt;li&gt;&lt;strong&gt;SourceDatabase&lt;/strong&gt; = NIS_empl_wage&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="font-size:9pt;"&gt;
Note 2: A DB "restore" by the DBA would nix Destination tables that do not exist in Source tables; but not this technique.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/6590016818001044110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=6590016818001044110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6590016818001044110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6590016818001044110'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/03/create-ssis-to-copy-tables.html' title='Create &lt;acronym title=&quot;SQL Server Integration Services&quot;&gt;SSIS&lt;/acronym&gt; to copy tables'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-7805881843651749847</id><published>2008-02-21T18:42:00.010-06:00</published><updated>2008-03-07T12:10:48.310-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>CASE: This way (3) NULLs get put in tbl if data is blank.</title><content type='html'>&lt;pre&gt;command = New SqlCommand("INSERT INTO tblFoo (UIAcctNum, WorkZip, CheckRouteDesc, Agency, Division, RUN, Rpt_Unit_RUNDesc, StartDate,EndDate ,CheckRouteCode, Rpt_Unit_RUNDesc__old,NAICS) " &amp; _ 
" VALUES (@UIAcctNum, @WorkZip, @CheckRouteDesc, @Agency, @Division, @RUN, " &amp; _ 
"CASE WHEN ltrim(@Rpt_Unit_RUNDesc) = '' THEN NULL ELSE @Rpt_Unit_RUNDesc END, " &amp; _ 
"@StartDate, " &amp; _ 
"CASE WHEN ltrim(@EndDate) = '' THEN NULL ELSE @EndDate END, " &amp; _ 
"@CheckRouteCode, " &amp; _ 
"CASE WHEN ltrim(@Rpt_Unit_RUNDesc__old) = '' THEN NULL ELSE @Rpt_Unit_RUNDesc__old END, " &amp; _ 
" CASE WHEN ltrim(@NAICS) = '' THEN NULL ELSE @NAICS END)", connection) ' This way (3) NULLs get put in tbl if data is blank.&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/7805881843651749847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=7805881843651749847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7805881843651749847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7805881843651749847'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2008/02/this-way-3-nulls-get-put-in-tbl-if-data.html' title='CASE: This way (3) NULLs get put in tbl if data is blank.'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4780819785549362937</id><published>2007-12-09T22:00:00.011-06:00</published><updated>2009-01-05T09:12:30.092-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL notes</title><content type='html'>&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SELECT * FROM ES202_RUN_LKP 
WHERE EndDate BETWEEN CAST('01/01/2005' AS DATETIME) AND CAST('01/11/2008' AS DATETIME)
&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;&lt;code&gt;SELECT DISTINCT * INTO ##temp3 from ##temp2 --Use this if I want to INSERT rows AND create the destination table.
&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;&lt;code&gt;WHERE ##temp1.Area &lt;&gt; ##temp2.Area -- The 'WHERE &lt;&gt;' stops a cartesian join.&lt;/code&gt;&lt;/li&gt; 

&lt;li&gt;&lt;code&gt;SELECT * INTO ##temp3 FROM (SELECT * FROM ##temp1 UNION SELECT * FROM ##temp2) un&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;&lt;pre&gt;&lt;code&gt;strSQL = "IF OBJECT_ID('tblTempNIS_Qtrly_SumByRUN_and_crc', 'U') IS NOT NULL DROP TABLE tblTempNIS_Qtrly_SumByRUN_and_crc" ' This is not really a temp table because no #; so must DROP. It's a helper table. Couldn't use a temp because mData's Clear lose the data for the next query's use of it. ' The ", 'U' " is optional; it just insures that the object is a user table and not, for example, a sproc or other type of object.&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;

&lt;li&gt;
&lt;pre&gt;&lt;code&gt;' To get all information about the @@Error value that is returned in the output parameter 
' From Master database 
' SELECT * FROM sysmessages WHERE Error = 2627 ' type value in rdoQy(3) here&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;--NWDSQL.BmrkSource.PendingPublish is empty for 2003-2004. Thus do this to populate it with rows from the other table:
INSERT INTO BmrkSource.dbo.PendingPublish
SELECT NEArea,IdentifierCode,EndDate,NumberOfPeople,Week,ItemCodeID,Ratio --Note: Published has 1 extra column at the end so I must list these out.
FROM NELausData.dbo.Published
WHERE NELausData.dbo.Published.EndDate LIKE '2004%'
OR NELausData.dbo.Published.EndDate LIKE '2003%'&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;tt&gt;INNER JOIN&lt;/tt&gt; returns all rows from both tables where there is a match. If there are rows in first table that do not have matches in second table, those rows will not be listed. 
&lt;/li&gt;
&lt;li&gt;The &lt;tt&gt;LEFT JOIN&lt;/tt&gt; returns all the rows from the first table, even if there are no matches in the second table.  If there are rows in first table that do not have matches in second table, those rows also will be listed. 
&lt;/li&gt;
&lt;li&gt;The &lt;tt&gt;RIGHT JOIN&lt;/tt&gt; returns all the rows from the second table, even if there are no matches in the first table.  If there had been any rows in second table that did not have matches in first table, those rows also would have been listed. 
&lt;/li&gt;
&lt;li&gt;SQL Server is phasing out &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;ntext&lt;/tt&gt;, and &lt;tt&gt;image&lt;/tt&gt;. There’s no way to know how long SQL Server will support the older data types. Upgrade legacy applications to &lt;tt&gt;varchar&lt;/tt&gt;, &lt;tt&gt;nvarchar&lt;/tt&gt;, and &lt;tt&gt;varbinary&lt;/tt&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="http://dbazine.com/sql/sql-articles/cook1"&gt;dbazine.com/sql/sql-articles/cook1&lt;/a&gt;&lt;/li&gt;             
 &lt;li&gt;&lt;a href="http://docs.ingres.com/sqlref/SQLSTATEValuesandGenericErrorCodes"&gt;docs.ingres.com/sqlref/SQLSTATEValuesandGenericErrorCodes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4780819785549362937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4780819785549362937' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4780819785549362937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4780819785549362937'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/12/sql-notes.html' title='SQL notes'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-6742918732360496165</id><published>2007-11-22T14:07:00.000-06:00</published><updated>2007-11-23T21:55:07.986-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>How to get a DB and send it....</title><content type='html'>&lt;p&gt;
You can backup the DB from the server and then restore it on your local machine with installed MS SQL Server 2000. Then you can change or delete any pruned info from the DB on your local machine. Then you can backup the modified DB again and send that backup file (*.bak file). You can send this file with Gmail. There is about 3Gb available space.
&lt;/p&gt;
&lt;ol&gt;&lt;strong&gt;How to backup...&lt;/strong&gt;
&lt;li&gt;Open Enterprise Manager&lt;/li&gt;
&lt;li&gt;Select source DB&lt;/li&gt;
&lt;li&gt;Right click on the selected DB. Select All Tasks-&gt;Backup Database... from the popup menu.&lt;/li&gt;
&lt;li&gt;Select File and filegroup and add destination file name in the Backup dialog.&lt;/li&gt;
&lt;li&gt;Press OK&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;&lt;strong&gt;How to restore...&lt;/strong&gt;
&lt;li&gt;Open Enterprise Manager&lt;/li&gt;
&lt;li&gt;Select Databases node&lt;/li&gt;
&lt;li&gt;Right click on this node. Select All Tasks-&gt;Restore Database... from the popup menu.&lt;/li&gt;
&lt;li&gt;Type database name in the Restore as database textbox&lt;/li&gt;
&lt;li&gt;Select Restore From Device&lt;/li&gt;
&lt;li&gt;Press Select Device&lt;/li&gt; 
&lt;li&gt;Add backup file name&lt;/li&gt;
&lt;li&gt;Press OK&lt;/li&gt;
&lt;li&gt;In the Options tab check file pathes where your database will be restored.&lt;/li&gt;
&lt;li&gt;Press OK&lt;/li&gt;
&lt;li&gt;Select File and filegroup and add destination file name in the Backup dialog.&lt;/li&gt;
&lt;li&gt;Press OK&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/6742918732360496165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=6742918732360496165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6742918732360496165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6742918732360496165'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/11/how-to-get-db-and-send-it.html' title='How to get a DB and send it....'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-6119801377362887080</id><published>2007-09-27T16:59:00.001-05:00</published><updated>2007-10-12T10:57:38.948-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Excel: compare two Worksheets</title><content type='html'>&lt;p&gt;
&lt;strong&gt;Excel Macro&lt;/strong&gt;
&lt;br/&gt;
&lt;a href="http://exceltip.com/st/Compare_two_worksheets_using_VBA_in_Microsoft_Excel/477.html"&gt;http://exceltip.com/st/Compare_two_worksheets_using_VBA_in_Microsoft_Excel/477.html&lt;/a&gt;
&lt;br/&gt;
Compares the 2 Worksheets and pops up a workbook with the differences:
&lt;br/&gt;
Steps:
&gt;Tools &gt; Macro &gt;Macros &gt;Run
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Excel Function&lt;/strong&gt;
&lt;br/&gt;
Function for comparing data: &lt;a href="http://office.microsoft.com/en-us/excel/HP100625641033.aspx?pid=CH100645341033"&gt;http://office.microsoft.com/en-us/excel/HP100625641033.aspx?pid=CH100645341033&lt;/a&gt;
&lt;br/&gt;
Here's the Excel formula: &lt;code&gt;=Exact(ColumnRow,ColumnRow)&lt;/code&gt;
&lt;br/&gt;
An example:  &lt;code&gt;=EXACT(G5,P5)&lt;/code&gt; [First put both worksheets on the same worksheet, side by side.]
&lt;br/&gt;
If the result is True data matches; if False data does not match
&lt;/p&gt;
&lt;p&gt;
Also, I was told there is a way to recieve as output each row that was different using a "Filter".&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://exceltip.com/st/Compare_two_worksheets_using_VBA_in_Microsoft_Excel/477.html' title='Excel: compare two Worksheets'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/6119801377362887080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=6119801377362887080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6119801377362887080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6119801377362887080'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/09/excel-compare-two-worksheets.html' title='Excel: compare two Worksheets'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-8217009534393082740</id><published>2007-08-30T17:37:00.002-05:00</published><updated>2008-09-08T15:00:40.684-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL compare two tables</title><content type='html'>Difference in data stored in both tables (compare the difference between two tables)? 

You can use SQL to see rows which don't have a match in one table 
or the other: 
&lt;pre&gt;&lt;code&gt;Select col_a,col_b from table1 
where not exists 
    (select * from table2 
     where table1.col_a = table2.col_a and 
           table1.col_b = table2.col_b)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
Repeat for table2.  
&lt;/p&gt;
&lt;p&gt;
further notes:
--http://windowsitpro.com/Articles/ArticleID/14368/14368.html?Ad=1
&lt;/br&gt;
--http://webmasterworld.com/databases_sql_mysql/3241540.htm
&lt;/p&gt;
&lt;h4&gt;Here is a way of comparing 2 tables that I tried at work:&lt;/h4&gt;
&lt;pre&gt;
-- DROP my new temp table if exists:
DROP TABLE ##EricsTempUnionOfMonthlyAndBiweekly

-- UNION the monthly &amp; biweekly tbls into a temp table:
SELECT * INTO ##EricsTempUnionOfMonthlyAndBiweekly 
FROM (SELECT * FROM NISTempLowLevelMonthly 
UNION SELECT * FROM NISTempLowLevelBiweekly) un

-- Verify it:
SELECT * FROM ##EricsTempUnionOfMonthlyAndBiweekly --18347rows, yes this was a UNION of monthly &amp; biweekly tables.

-- LEFT OUTER JOIN which means gives me the differences:
SELECT DISTINCT * FROM ##EricsTempUnionOfMonthlyAndBiweekly LEFT OUTER JOIN NISTemp_Qtrly_Detail 
ON NISTemp_Qtrly_Detail.SocSecNumber = ##EricsTempUnionOfMonthlyAndBiweekly.SocSecNumber -- 72573 rows
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://wiki.lessthandot.com/index.php/5_ways_to_return_rows_from_one_table_not_in_another_table' title='SQL compare two tables'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/8217009534393082740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=8217009534393082740' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8217009534393082740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8217009534393082740'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/08/sql-compare-rows-two-tables.html' title='SQL compare two tables'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4416079196267660092</id><published>2007-07-20T09:30:00.000-05:00</published><updated>2007-07-20T09:39:21.793-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Debug sproc in VS</title><content type='html'>&lt;p&gt;
In VS at the &lt;strong&gt;Sever Explorer&lt;/strong&gt; pane I right-click on my data connection that I added and select &lt;strong&gt;Modify Connection&lt;/strong&gt;. Then in the &lt;strong&gt;Modify Connection&lt;/strong&gt; dialog I clicked &lt;strong&gt;Advanced...&lt;/strong&gt; and then in the &lt;strong&gt;Advanced Properties&lt;/strong&gt; dialog I changed &lt;strong&gt;Pooling&lt;/strong&gt; from True to &lt;strong&gt;False&lt;/strong&gt;.  Now it works.
Also, in the configuration file, the &lt;strong&gt;Enable SQL Server debugging&lt;/strong&gt; must be checked. Also, I have to add &lt;code&gt;cmd.CommandTimeout=1800&lt;/code&gt; to the VB's sproc area else it will time-out while clicking thru the sproc in the debugger.
&lt;/p&gt;
&lt;p&gt;
But, when not debugging, in order to get the app to run to completion without crashing with the error &lt;strong&gt;Error while executing 'a batch cmd' at line 0&lt;/strong&gt; , I have to uncheck &lt;strong&gt;Enable SQL Server debugging&lt;/strong&gt; and set &lt;strong&gt;Pooling&lt;/strong&gt; back to &lt;strong&gt;True&lt;/strong&gt;. --Because not pooling the connections hurts performance.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://aspalliance.com/1131_Understanding_Object_Pooling_in_Microsoft_NET' title='Debug sproc in VS'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4416079196267660092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4416079196267660092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4416079196267660092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4416079196267660092'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/07/debug-sproc-in-vs.html' title='Debug sproc in VS'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-8640733076097766381</id><published>2007-07-18T07:56:00.000-05:00</published><updated>2007-07-18T10:17:02.059-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>To export DTS package, do the following:</title><content type='html'>&lt;ol style="list-style-type:arabic;"&gt;
&lt;li&gt;Open MS SQL Server Enterprise Manager&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Local Packages&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Open some DTS Package&lt;/li&gt;
&lt;li&gt;In the DTS Package window from menu select item &lt;strong&gt;Package&lt;/strong&gt;-&gt;&lt;strong&gt;Save As...&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Save DTS Package&lt;/strong&gt; dialog 
&lt;ul&gt;&lt;li&gt;in the &lt;strong&gt;Location&lt;/strong&gt; field select &lt;strong&gt;Structured Storage&lt;/li&gt; File&lt;/strong&gt;&lt;/li&gt; 
&lt;li&gt;in the &lt;strong&gt;File Name&lt;/strong&gt; field set destination path of saved file&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;
&lt;li&gt;Press &lt;strong&gt;OK&lt;/strong&gt; button&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://www.databasejournal.com/features/mssql/article.php/1581801' title='To export DTS package, do the following:'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/8640733076097766381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=8640733076097766381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8640733076097766381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8640733076097766381'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/07/to-export-dts-package-do-following.html' title='To export DTS package, do the following:'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-1322714306987608120</id><published>2007-06-20T12:33:00.004-05:00</published><updated>2008-03-28T20:31:34.504-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Server 2000: Query Analyzer Tips &amp; Tricks</title><content type='html'>You probably know that SQL Server stores metadata about all of the objects in a database. The system tables contain a wealth of information about column names, data types, identity seeds, and so on. But did you know that you can get that information with a single keystroke via Query Analyzer? Highlight the object name in any SQL statement and press Alt+F1. Figure 1 shows the results for a SQL Server table. If you don't have anything highlighted, Alt+F1 will give you information about the database itself. For an equally neat trick, highlight a SQL keyword and press Shift+F1; you'll go straight to the Books Online page that describes that keyword.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='related' href='http://www.developer.com/db/article.php/10920_3418031_2' title='Server 2000: Query Analyzer Tips &amp; Tricks'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/1322714306987608120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=1322714306987608120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/1322714306987608120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/1322714306987608120'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/06/query-analyzer-tips-and-tricks.html' title='Server 2000: Query Analyzer Tips &amp; Tricks'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-5867481239642449411</id><published>2007-06-19T09:20:00.000-05:00</published><updated>2007-06-19T19:56:57.438-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Getting .dll into Registry</title><content type='html'>&lt;ol style="list-style-type:arabic;"&gt;
&lt;li&gt;Download the file (MSRDO20.zip) to your desktop
&lt;/li&gt;
&lt;li&gt;Unzip the content of the file (a file called MSRDO20.DLL) to your desktop
&lt;/li&gt;
&lt;li&gt;Right now you should have a new file called MSRDO20.DLL that resides on your desktop
&lt;/li&gt;
&lt;li&gt;Copy this file to your Windows System Folder; this folder is usually found inside your 'C:\Windows' folder. It is called 'C:\Windows\System' or 'System32'...
&lt;/li&gt;
&lt;li&gt;Go to 'Start Menu' and choose 'Run'
&lt;/li&gt;
&lt;li&gt;A new window titled 'Run' will open; type the line 'regsvr32.exe msrdo20.dll' and hit 'Enter'.
&lt;/li&gt;
&lt;li&gt;A message will show up stating that the registration was successful.
&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/5867481239642449411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=5867481239642449411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5867481239642449411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5867481239642449411'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/06/getting-dll-into-registry.html' title='Getting .dll into Registry'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4843600695929756236</id><published>2007-06-08T23:12:00.003-05:00</published><updated>2008-09-05T15:51:36.068-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Visual Studio Short-cuts</title><content type='html'>&lt;p&gt;Most of the time, you will Step Into or Step Over commands in your stored procedures. The commands below apply to a single T-SQL line:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Step Into&lt;/b&gt; (F11): Use to single step through your code. (Move the yellow arrow down one statement.)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Step Over&lt;/b&gt; (F10): Useful if you have lines of code that perhaps modify data or call other procedures that you don't care about while debugging. For example, you may want to skip code that performs auditing.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Step Out&lt;/b&gt; (SHIFT+F11): Execute the rest of the stored procedure without pause.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Run to Cursor&lt;/b&gt; (CTRL+F10): Position the cursor to a point in your code and then hit CTRL-F10 to execute all code up to that point.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Continue or Start Debug or Run&lt;/b&gt; (F5): Start Debug. Or resumes execution until completion or until the next breakpoint.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Toggle Bookmark&lt;/b&gt; (CTRL+K)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Help&lt;/b&gt; (F1)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
When you provide a summary of the class using XML comments, your class displays documentation about itself in appropriate places within Visual Studio, such as in the List Members box. Open the List Members box by selecting Edit | Intellisense | List Members from the main menu bar or by clicking the Display an Object Member List icon on the Text Editor toolbar.
&lt;/p&gt;


&lt;h2&gt;Command Window debugging: Getting Values&lt;/h2&gt;
&lt;p&gt;To see the value of your variable whilst in Debug mode, use the "Command Window" (View &gt;Other Windows &gt;Command Window). Enter this: &lt;code&gt;? myVariableName&lt;/code&gt;
&lt;/br&gt;
&lt;a href="http://www.ondotnet.com/pub/a/dotnet/excerpt/vshacks_chap1/index.html" title="command"&gt;http://www.ondotnet.com/pub/a/dotnet/excerpt/vshacks_chap1/index.html&lt;/a&gt;
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/4843600695929756236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=4843600695929756236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4843600695929756236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4843600695929756236'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/06/visual-studio-short-cuts.html' title='Visual Studio Short-cuts'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-5531618303065398594</id><published>2007-05-17T21:53:00.001-05:00</published><updated>2007-09-03T13:43:46.879-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL: Bulk import</title><content type='html'>&lt;p&gt;Bulk import (save file.txt as csv): &lt;code&gt;LOAD DATA INFILE 'file.txt' INTO TABLE 'tblFoo' (col1, col2, col3) &lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
or
&lt;/br&gt;
&lt;code&gt;BULK LOAD IMPORT ('c:\file.txt') INTO TABLE 'tblFoo' (col1, col2, col3)&lt;/code&gt;
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-4039287786711000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE7EC";
google_color_bg = "FFFFFF";
google_color_link = "0066FF";
google_color_url = "0066FF";
google_color_text = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/5531618303065398594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6711727&amp;postID=5531618303065398594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5531618303065398594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5531618303065398594'/><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/2007/05/sql-bulk-import_17.html' title='SQL: Bulk import'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>