<?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>2008-05-09T16:45:52.533-05:00</updated><title type='text'>Programmabilities Blog</title><link rel='alternate' type='text/html' href='http://programmabilities.com/blog/index.php'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default'/><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>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6711727.post-4298346551749906914</id><published>2008-05-09T12:51:00.014-05:00</published><updated>2008-05-09T15:00:09.889-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'>SSRS&lt;/ACRONYMN title="SQL Server Reporting Services"&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) + " of " + Format(Globals!TotalPages) + " pages"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;="Printed by " + User!UserID + " on " + DateTime.Now.ToString()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;="Execution Time: " +
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), ", "") +
IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes &gt; 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes &amp; " minute(s), ", "") +
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://www.ssw.com.au/Ssw/Standards/Rules/RulesToBetterSQLReportingServices.aspx"&gt;http://www.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;http://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;http://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='alternate' type='text/html' href='http://programmabilities.com/blog/2008/05/sql-server-2005-reports-tips.html' title='SQL Server 2005 Reports: tips'/><link rel='related' href='http://msdn.microsoft.com/en-us/express/aa718391.aspx' title='SQL Server 2005 Reports: tips'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=4298346551749906914' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4298346551749906914'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4298346551749906914'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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'/><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='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=4264024532427032550' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4264024532427032550'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4264024532427032550'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='alternate' type='text/html' href='http://programmabilities.com/blog/2008/03/replacecommaswithpipesvbs.html' title='ReplaceCommasWithPipes.vbs'/><link rel='related' href='http://techtasks.com/code/viewbook/5?lang=VBScript' title='ReplaceCommasWithPipes.vbs'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=8323002143786483659' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8323002143786483659'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8323002143786483659'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=6590016818001044110' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6590016818001044110'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6590016818001044110'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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.'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=7805881843651749847' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7805881843651749847'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/7805881843651749847'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4780819785549362937</id><published>2007-12-09T22:00:00.007-06:00</published><updated>2008-05-09T16:45:52.868-05: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;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;/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;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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/12/sql-notes.html' title='SQL notes'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=4780819785549362937' title='1 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4780819785549362937'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4780819785549362937'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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....'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=6742918732360496165' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6742918732360496165'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6742918732360496165'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/09/excel-compare-two-worksheets.html' title='Excel: compare two Worksheets'/><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='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=6119801377362887080' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6119801377362887080'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6119801377362887080'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-8217009534393082740</id><published>2007-08-30T17:37:00.000-05:00</published><updated>2007-10-21T00:39:22.131-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;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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/08/sql-compare-rows-two-tables.html' title='SQL compare two tables'/><link rel='related' href='http://groups.google.com/group/comp.databases/browse_thread/thread/99bbab1646f36391/8a51b0fa79ef79d0?lnk=st&amp;q=sql+compare+rows+two+tables&amp;rnum=5&amp;hl=en#8a51b0fa79ef79d0' title='SQL compare two tables'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=8217009534393082740' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8217009534393082740'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8217009534393082740'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/07/debug-sproc-in-vs.html' title='Debug sproc in VS'/><link rel='related' href='http://aspalliance.com/1131_Understanding_Object_Pooling_in_Microsoft_NET' title='Debug sproc in VS'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=4416079196267660092' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4416079196267660092'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4416079196267660092'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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:'/><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='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=8640733076097766381' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8640733076097766381'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/8640733076097766381'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='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'/><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='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=1322714306987608120' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/1322714306987608120'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/1322714306987608120'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/06/getting-dll-into-registry.html' title='Getting .dll into Registry'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=5867481239642449411' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5867481239642449411'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5867481239642449411'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-4843600695929756236</id><published>2007-06-08T23:12:00.000-05:00</published><updated>2007-08-28T12:59:40.185-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;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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/06/visual-studio-short-cuts.html' title='Visual Studio Short-cuts'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=4843600695929756236' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4843600695929756236'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/4843600695929756236'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/05/sql-bulk-import_17.html' title='SQL: Bulk import'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=5531618303065398594' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5531618303065398594'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5531618303065398594'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-5194522058005900986</id><published>2007-05-10T18:13:00.000-05:00</published><updated>2007-07-18T10:22:40.181-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL Server 2000: make table backup with DTS</title><content type='html'>&lt;ul&gt;
&lt;li&gt;Right-click the table
&lt;ul&gt;&lt;li&gt;choose &lt;strong&gt;Export Data&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Choose a destination
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Server:&lt;/strong&gt; "nwdsql" and &lt;strong&gt;Database:&lt;/strong&gt; NELausData&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;radiobutton select="true"&gt;&lt;strong&gt;copy table(s)&lt;/strong&gt;&lt;/radiobutton&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;checkbox select="true"&gt;UserXRef"_bkup" (Destination)&lt;/checkbox&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Done, then refresh explorer to view.
&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='alternate' type='text/html' href='http://programmabilities.com/blog/2007/05/sql-server-make-table-backup.html' title='SQL Server 2000: make table backup with DTS'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=5194522058005900986' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5194522058005900986'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5194522058005900986'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-47978546315981283</id><published>2006-11-28T20:47:00.000-06:00</published><updated>2006-12-02T11:59:13.343-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><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; gt/ 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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/11/asp-confirm.html' title='ASP confirm'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=47978546315981283' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/47978546315981283'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/47978546315981283'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-5223514259872014918</id><published>2006-11-25T18:40:00.000-06:00</published><updated>2006-11-28T20:53:18.681-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Install Google Search API Into Visual Studio</title><content type='html'>&lt;ul&gt;
 &lt;li&gt;Get the Google API and unzip. Import &lt;span style="font-family:courier new;"&gt;GoogleSearch.wsdl&lt;/span&gt; to the Project root.
 &lt;/li&gt;
 &lt;li&gt;Right-click on the Project root.
  &lt;ul&gt;
   &lt;li&gt;Add Web Reference
    &lt;ul&gt;
     &lt;li&gt;
Then type in the URL: &lt;span style="font-family:courier new;"&gt;http://localhost:1574/projectname/GoogleSearch.wsdl&lt;/span&gt; or &lt;span style="font-family:courier new;"&gt;http://foo.com/GoogleSearch.wsdl&lt;/span&gt;
     &lt;/li&gt;
    &lt;/ul&gt;
   &lt;/li&gt;
  &lt;/ul&gt;
 &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Then you should see an &lt;span style="font-family:courier new;"&gt;App_WebReferences&lt;/span&gt; folder in your Project. And then a folder in that called &lt;span style="font-family:courier new;"&gt;localhost&lt;/span&gt;. And then files &lt;span style="font-family:courier new;"&gt;GoogleSearch.discomap&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;GoogleSearch.wsdl&lt;/span&gt; in that.
&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/11/install-google-search-api-into-visual.html' title='Install Google Search API Into Visual Studio'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=5223514259872014918' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5223514259872014918'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/5223514259872014918'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-6310002074514410049</id><published>2006-11-25T18:25:00.000-06:00</published><updated>2007-05-17T21:50:02.914-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='programmabilities'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Test SQL Injection Attack on ASP</title><content type='html'>Username: &lt;span style="font-family:arial;"&gt;foo&lt;/span&gt;&lt;br/&gt;
Password: &lt;span style="font-family:arial;"&gt;abc' OR 'x' = 'x&lt;/span&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/11/test-sql-injection-attack-on-asp.html' title='Test SQL Injection Attack on ASP'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=6310002074514410049' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6310002074514410049'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/6310002074514410049'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-358608969197779559</id><published>2006-11-18T20:56:00.000-06:00</published><updated>2006-11-19T15:44:28.331-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Load a Control into Visual Studio</title><content type='html'>&lt;ul&gt;&lt;li&gt;Right-click on toolbar and "Choose Items"&lt;/li&gt;&lt;li&gt;Then browse and go to your /Controls/ folder&lt;/li&gt;&lt;li&gt;Then click on it and open&lt;/li&gt;&lt;li&gt;Then click "OK"&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Then it will be on your toolbar and there will be a Reference to it in your /Bin/&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/11/load-control-into-visual-studio.html' title='Load a Control into Visual Studio'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=358608969197779559' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/358608969197779559'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/358608969197779559'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-116215561860073188</id><published>2006-10-29T14:54:00.000-06:00</published><updated>2007-10-21T00:44:45.285-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>ViewState("UrlReferrer")</title><content type='html'>&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/10/viewstateurlreferrer.html' title='ViewState(&quot;UrlReferrer&quot;)'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=116215561860073188' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/116215561860073188'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/116215561860073188'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-115644941199333578</id><published>2006-08-24T14:56:00.000-05:00</published><updated>2006-11-19T15:45:21.216-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>Visual Basic: using Controls collection</title><content type='html'>&lt;pre&gt;&lt;code&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;/code&gt;

&lt;code&gt;&lt;/code&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/08/visual-basic-using-controls-collection.html' title='Visual Basic: using Controls collection'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=115644941199333578' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/115644941199333578'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/115644941199333578'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-115355605705041764</id><published>2006-07-22T03:14:00.000-05:00</published><updated>2007-10-21T00:41:23.174-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>PHP: Removing www</title><content type='html'>For some reason Google has a different PageRank for &lt;tt&gt;programmabilities.com&lt;/tt&gt; and &lt;tt&gt;www.programmabilities.com&lt;/tt&gt;.
No big deal really, but it bothered me a bit. So I added this rule to &lt;tt&gt;.htaccess&lt;/tt&gt; to fix it:
&lt;pre&gt;&lt;code&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.programmabilities.com [NC]
RewriteRule ^(.*)$ http://programmabilities.com/$1 [R=301,L]
&lt;/code&gt;&lt;/pre&gt;
This way I got rid of the &lt;tt&gt;www&lt;/tt&gt; part once and for all, which I also find nicer. I used a &lt;tt&gt;301&lt;/tt&gt; Permanent redirect hoping Google will understand that a search for &lt;tt&gt;link:http://programmabilities.com/blog/&lt;/tt&gt; and a search for &lt;tt&gt;link:http://www.programmabilities.com/blog/&lt;/tt&gt; should return the same results.&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/07/removing-www.html' title='PHP: Removing www'/><link rel='related' href='http://rapidsignal.com/blog/2005/10/24/removing-www/' title='PHP: Removing www'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=115355605705041764' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/115355605705041764'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/115355605705041764'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-113669351533716117</id><published>2006-01-07T22:11:00.000-06:00</published><updated>2006-11-19T15:46:23.828-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='vb'/><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'>body onload="javascript:document.forms[0].txtFirst.focus();"


And here is a list of all the variables for a Javascript popup window:
&lt;a title="JS" href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp&lt;/a&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/01/asp-net-set-focus-to-control.html' title='ASP .NET set focus to a control (javascript)'/><link rel='related' href='http://www.extremeexperts.com/Net/CodeSnippets/SettingFocustoElementAfterPostback.aspx' title='ASP .NET set focus to a control (javascript)'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=113669351533716117' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/113669351533716117'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/113669351533716117'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-6711727.post-113669341802490592</id><published>2006-01-07T22:09:00.001-06:00</published><updated>2006-11-19T15:48:45.892-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb'/><title type='text'>VB: Regular Expressions</title><content type='html'>&lt;code&gt;Regex.IsMatch("subject", "regex")&lt;/code&gt; ' Checks if the regular expression matches the subject string.&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='alternate' type='text/html' href='http://programmabilities.com/blog/2006/01/vb-regular-expressions.html' title='VB: Regular Expressions'/><link rel='related' href='http://www.15seconds.com/issue/010301.htm' title='VB: Regular Expressions'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6711727&amp;postID=113669341802490592' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://programmabilities.com/blog/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/113669341802490592'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6711727/posts/default/113669341802490592'/><author><name>programmabilities</name><uri>http://www.blogger.com/profile/06938880405055923257</uri><email>noreply@blogger.com</email></author></entry></feed>