<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6930989844728359465</id><updated>2012-01-28T11:45:25.691-08:00</updated><title type='text'>Programming Support</title><subtitle type='html'>Complete Support VB, PHP, ASP, SQL</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-2009425112434063434</id><published>2007-12-26T05:44:00.001-08:00</published><updated>2007-12-26T05:44:29.307-08:00</updated><title type='text'>ASP Summary</title><content type='html'>&lt;h2&gt;ASP Summary&lt;/h2&gt; &lt;p&gt;This tutorial has taught you how to add server-side scripts to your web site, to make  your web site more dynamic and interactive.&lt;/p&gt; &lt;p&gt;You have learned how to dynamically edit, change or add any content of a web  page, respond to data submitted from HTML forms, access any data or databases  and return the results to a browser, customize a web page to make it more useful  for individual users.&lt;/p&gt; &lt;p&gt;For more information on ASP, please look at our &lt;a href="http://www.w3schools.com/asp/asp_examples.asp"&gt; ASP examples&lt;/a&gt;.&lt;/p&gt; &lt;hr /&gt; &lt;h2&gt;Now You Know ASP, What's Next?&lt;/h2&gt; &lt;p&gt;The next step is to learn SQL and ADO.&lt;/p&gt; &lt;p&gt;&lt;b&gt;SQL&lt;/b&gt;&lt;/p&gt; &lt;p&gt;SQL is a standard computer language for accessing and manipulating database  systems.&lt;/p&gt; &lt;p&gt;SQL statements are used to retrieve and update data in a database. SQL works  with database programs like MS Access, DB2, Informix, MS SQL Server, Oracle,  Sybase, and other database systems.&lt;/p&gt; &lt;p&gt;If you want to learn more about SQL, please  visit our &lt;a href="http://www.w3schools.com/sql/default.asp"&gt;SQL tutorial&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;b&gt;ADO&lt;/b&gt;&lt;/p&gt; &lt;p&gt;ADO is a programming interface to access data in a database from a web site.&lt;/p&gt; &lt;p&gt;ADO uses SQL to query data in a database.&lt;/p&gt; &lt;p&gt;If you want to learn more about ADO, please  visit our &lt;a href="http://www.w3schools.com/ado/default.asp"&gt;ADO tutorial&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-2009425112434063434?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/2009425112434063434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=2009425112434063434&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2009425112434063434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2009425112434063434'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/asp-summary.html' title='ASP Summary'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-971630037902957525</id><published>2007-12-26T05:41:00.000-08:00</published><updated>2007-12-26T05:42:25.386-08:00</updated><title type='text'>ASP Coding Starting</title><content type='html'>&lt;p class="intro"&gt;An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are executed on the server&lt;/p&gt; &lt;hr /&gt;  &lt;h2&gt;What you should already know&lt;/h2&gt; &lt;p&gt;Before you continue you should have some basic understanding of the following:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;HTML / XHTML&lt;/li&gt;&lt;li&gt;A scripting language like JavaScript or VBScript&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you want to study these subjects first, find the tutorials on our &lt;a href="http://www.w3schools.com/default.asp"&gt;Home page&lt;/a&gt;.&lt;/p&gt;  &lt;hr /&gt; &lt;h2&gt;What is ASP?&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;ASP stands for &lt;b&gt;A&lt;/b&gt;ctive &lt;b&gt;S&lt;/b&gt;erver &lt;b&gt;P&lt;/b&gt;ages&lt;/li&gt;&lt;li&gt;ASP is a program that runs inside &lt;b&gt; IIS&lt;/b&gt;&lt;/li&gt;&lt;li&gt;IIS stands for &lt;b&gt;I&lt;/b&gt;nternet &lt;b&gt;I&lt;/b&gt;nformation &lt;b&gt;S&lt;/b&gt;ervices&lt;/li&gt;&lt;li&gt;IIS comes as a free component with &lt;b&gt;Windows 2000&lt;/b&gt;&lt;/li&gt;&lt;li&gt;IIS is also a part of the &lt;b&gt;Windows NT 4.0 Option Pack&lt;/b&gt;&lt;/li&gt;&lt;li&gt;The Option Pack can be &lt;b&gt;downloaded&lt;/b&gt; from Microsoft&lt;/li&gt;&lt;li&gt;&lt;b&gt;PWS&lt;/b&gt; is a smaller - but fully functional - version of IIS&lt;/li&gt;&lt;li&gt;PWS can be found on your &lt;b&gt;Windows 95/98 CD&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;h2&gt;&lt;b&gt;ASP Compatibility&lt;/b&gt;&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;ASP is a Microsoft Technology&lt;/li&gt;&lt;li&gt;To run IIS you must have Windows NT 4.0 or later&lt;/li&gt;&lt;li&gt;To run PWS you must have Windows 95 or later&lt;/li&gt;&lt;li&gt;ChiliASP is a technology that runs ASP without Windows OS&lt;/li&gt;&lt;li&gt;InstantASP is another technology that runs ASP without Windows&lt;/li&gt;&lt;/ul&gt;  &lt;h2&gt;What is an ASP File?&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;An ASP file is just the same as an HTML file&lt;/li&gt;&lt;li&gt;An ASP file can contain text, HTML, XML, and scripts&lt;/li&gt;&lt;li&gt;Scripts in an ASP file are executed on the server&lt;/li&gt;&lt;li&gt;An ASP file has the file extension ".asp"&lt;/li&gt;&lt;/ul&gt;  &lt;h2&gt;How Does ASP Differ from HTML?&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;When a browser requests an HTML file, the server returns the file&lt;/li&gt;&lt;li&gt;When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML&lt;/li&gt;&lt;/ul&gt; &lt;hr /&gt;  &lt;h2&gt;What can ASP do for you?&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;Dynamically edit, change or add any content of a Web page&lt;/li&gt;&lt;li&gt;Respond to user queries or data submitted from HTML forms&lt;/li&gt;&lt;li&gt;Access any data or databases and return the results to a browser&lt;/li&gt;&lt;li&gt;Customize a Web page to make it more     useful for individual users&lt;/li&gt;&lt;li&gt;The advantages of using ASP instead of CGI and Perl, are those of simplicity and speed&lt;/li&gt;&lt;li&gt;Provide security since your ASP code can not be viewed from the browser&lt;/li&gt;&lt;li&gt;Clever ASP programming can minimize the network traffic&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Important: Because the scripts are executed on the server, the browser that displays the ASP file does not need to support scripting at  all!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-971630037902957525?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/971630037902957525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=971630037902957525&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/971630037902957525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/971630037902957525'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/asp-coding-starting.html' title='ASP Coding Starting'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-7654661740194533922</id><published>2007-12-26T05:12:00.000-08:00</published><updated>2007-12-26T05:54:27.421-08:00</updated><title type='text'>HTML Forms</title><content type='html'>&lt;p&gt;HTML Forms are used to select different kinds of user input.&lt;/p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;Examples&lt;/h2&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_input"&gt;Text fields&lt;/a&gt;&lt;br /&gt;This example demonstrates how to create text fields on an HTML page. A user can  write text in a text field.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_inputpassword"&gt;Password fields&lt;/a&gt;&lt;br /&gt;This example demonstrates how to create a password field on an HTML page.&lt;/p&gt;&lt;p&gt;(You can find more examples at the bottom of this page)&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Forms&lt;/h2&gt;&lt;p&gt;A form is an area that can contain form elements.Form elements are elements that allow the user to enter information (like text  fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.) in a  form.A form is defined with the &amp;lt;form&amp;gt; tag.&lt;/p&gt;&lt;table border="1" cellspacing="0" width="17%"&gt;&lt;br /&gt;&lt;tbody&gt;    &lt;tr&gt;&lt;br /&gt;    &lt;td height="73"&gt;&lt;pre&gt;&amp;lt;form&amp;gt; &lt;br /&gt;&amp;lt;input&amp;gt;&amp;lt;input&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/pre&gt;      &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h2&gt;Input&lt;/h2&gt;&lt;p&gt;The most used form tag is the &amp;lt;input&amp;gt; tag. The type of input is specified  with the type attribute. The most commonly used input types are explained below.&lt;/p&gt;&lt;h3&gt;Text Fields&lt;/h3&gt;&lt;p&gt;Text fields are used when you want the user to type letters, numbers,  etc. in a form.&lt;/p&gt;&lt;table style="width: 499px; height: 173px;" border="1" cellspacing="0"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;pre&gt;&amp;lt;form&amp;gt;&lt;br /&gt;First name:   &amp;lt;input type="text" name="firstname"&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;  Last name:   &amp;lt;input type="text" name="lastname"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;br /&gt;    &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;How it looks in a browser:&lt;br /&gt;First name:&lt;br /&gt;&lt;/p&gt;&lt;form action=""&gt;  &lt;input name="firstname" size="20" type="text"&gt;&lt;br /&gt;&lt;br /&gt;Last name:&lt;br /&gt;&lt;input name="lastname" size="20" type="text"&gt;&lt;br /&gt;&lt;/form&gt;&lt;p&gt;Note that the form itself is not visible. Also note that in most browsers, the  width of the text field is 20 characters by default.  &lt;/p&gt;&lt;h3&gt;Radio Buttons&lt;/h3&gt;&lt;p&gt;Radio Buttons are used when you want the user to select one of a limited number of choices.&lt;/p&gt;&lt;table style="width: 531px; height: 189px;" border="1" cellspacing="0"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;pre&gt;&amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;input type="radio" name="sex" value="male"&amp;gt;&lt;br /&gt;Male  &amp;lt;br&amp;gt;  &amp;lt;input type="radio" name="sex" value="female"&amp;gt;&lt;br /&gt;Female&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;br /&gt;    &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;How it looks in a browser:&lt;/p&gt;&lt;form action=""&gt;&lt;br /&gt;&lt;input name="sex" value="male" type="radio"&gt;&lt;br /&gt;Male&lt;br /&gt;&lt;br /&gt;&lt;input name="sex" value="female" type="radio"&gt;&lt;br /&gt;Female&lt;br /&gt;&lt;/form&gt;&lt;p&gt;Note that only one option can be chosen. &lt;/p&gt;Checkboxes&lt;br /&gt;Checkboxes are used when you want the user to select one or more options of a limited number of choices.&lt;br /&gt;&lt;table style="width: 561px; height: 205px;" border="1" cellspacing="0"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;pre&gt;&amp;lt;form&amp;gt;  I have a bike:&lt;br /&gt;&amp;lt;input type="checkbox" name="vehicle" value="Bike"&amp;gt;  &amp;lt;br /&amp;gt;&lt;br /&gt;I have a car:   &amp;lt;input type="checkbox" name="vehicle" value="Car"&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;  I have an airplane:&lt;br /&gt;&amp;lt;input type="checkbox" name="vehicle" value="Airplane"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;br /&gt;    &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;How it looks in a browser:&lt;br /&gt;&lt;/p&gt;&lt;form action=""&gt;  I have a bike:&lt;br /&gt;&lt;input name="vehicle" value="Bike" type="checkbox"&gt;&lt;br /&gt;I have a car:&lt;br /&gt;&lt;input name="vehicle" value="Car" type="checkbox"&gt;&lt;br /&gt;I have an airplane:&lt;br /&gt;&lt;input name="vehicle" value="Airplane" type="checkbox"&gt;&lt;br /&gt;&lt;/form&gt;&lt;hr /&gt;The Form's Action Attribute and the Submit Button&lt;br /&gt;&lt;p&gt;When the user clicks on the "Submit" button, the content of the form is  sent to another file. The form's action attribute defines the name of the file  to send the content to. The file defined in the action attribute usually does  something with the received input.&lt;/p&gt;&lt;table border="1" cellspacing="0" width="100%"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;pre&gt;&amp;lt;form name="input" action="html_form_action.asp"  method="get"&amp;gt;&lt;br /&gt;Username:   &amp;lt;input type="text" name="user"&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Submit"&amp;gt;  &amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;br /&gt;    &lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;How it looks in a browser:&lt;br /&gt;Username:&lt;br /&gt;&lt;/p&gt;&lt;form name="input" action="html_form_action.asp" method="get"&gt;  &lt;input name="user" size="20" type="text"&gt;&lt;br /&gt;  &lt;input name="submit" value="Submit" type="submit"&gt;&lt;br /&gt;&lt;/form&gt;&lt;p&gt; If you type some characters in the text field above, and click the "Submit" button, you will send your input to a  page called "html_form_action.asp". That page will show you the  received input. &lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;More Examples&lt;/h2&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_checkbox"&gt;Checkboxes&lt;/a&gt;&lt;br /&gt;This example demonstrates how to create check-boxes on an HTML page. A user can  select or unselect a checkbox.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_radio"&gt;Radio buttons&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to create radio-buttons on an HTML page.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2"&gt;Simple drop down box&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to create a simple drop-down box on an HTML page. A  drop-down box is a selectable list.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select3"&gt;Another drop down box&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to create a simple drop-down box with a pre-selected value.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/showit.asp?filename=tryhtml_textarea"&gt;Textarea&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to create a text-area (a multi-line text input control).   A user can write text in the text-area. In a text-area you can write an unlimited number of  characters.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_button"&gt;Create a button&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to create a button. On the button you can define  your own text.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_legend"&gt;Fieldset around data&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to draw a border with a caption around your data.&lt;/p&gt;&lt;h2&gt;Form Examples&lt;/h2&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit"&gt;Form with input fields and  a submit button&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to add a form to a page. The form contains two input fields and   a submit button.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_checkbox"&gt;Form with checkboxes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This form contains two checkboxes, and a submit button.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_radio"&gt;Form with radio buttons&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This form contains two radio buttons, and a submit button.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail"&gt;Send e-mail from a form&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This example demonstrates how to send e-mail from a form.&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Form Tags&lt;/h2&gt;&lt;table border="1" cellspacing="0" width="100%"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;th align="left"&gt;Tag&lt;/th&gt;&lt;br /&gt;    &lt;th align="left"&gt;Description&lt;/th&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_form.asp"&gt;&amp;lt;form&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt; Defines a form for user input&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_input.asp"&gt;&amp;lt;input&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines an input field&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_textarea.asp"&gt;&amp;lt;textarea&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a text-area (a multi-line text input control)&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_label.asp"&gt;&amp;lt;label&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a label to a control&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_fieldset.asp"&gt;&amp;lt;fieldset&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a fieldset&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_legend.asp"&gt;&amp;lt;legend&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a caption for a fieldset&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_select.asp"&gt;&amp;lt;select&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a selectable list (a drop-down box)&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_optgroup.asp"&gt;&amp;lt;optgroup&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines an option group&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_option.asp"&gt;&amp;lt;option&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines an option in the drop-down box&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&lt;a href="http://www.w3schools.com/tags/tag_button.asp"&gt;&amp;lt;button&amp;gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Defines a push button&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;  &lt;tr&gt;&lt;br /&gt;    &lt;td&gt;&amp;lt;isindex&amp;gt;&lt;/td&gt;&lt;br /&gt;    &lt;td&gt;Deprecated. Use &amp;lt;input&amp;gt; instead&lt;/td&gt;&lt;br /&gt;  &lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-7654661740194533922?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/7654661740194533922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=7654661740194533922&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7654661740194533922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7654661740194533922'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/html-forms-are-used-to-select-different.html' title='HTML Forms'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-6289650960680803269</id><published>2007-12-26T04:48:00.000-08:00</published><updated>2007-12-26T05:11:34.185-08:00</updated><title type='text'>HTML Tags</title><content type='html'>&lt;p&gt;HTML documents are text files made up of HTML elements.&lt;br /&gt;HTML elements are defined using HTML  tags.&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;HTML Tags&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;HTML tags are used to mark-up HTML &lt;strong&gt; elements&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;HTML tags are surrounded by the &lt;strong&gt; two characters &amp;lt; and &amp;gt;&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;The surrounding characters are called &lt;strong&gt;angle brackets&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;HTML tags normally &lt;strong&gt; come in pairs&lt;/strong&gt; like &amp;lt;b&amp;gt; and &amp;lt;/b&amp;gt;&lt;/li&gt; &lt;li&gt;The first tag in a pair is the &lt;strong&gt; start tag,&lt;/strong&gt; the      second tag is the &lt;strong&gt; end tag&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;The text between the start and end tags is the &lt;strong&gt;element content&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;HTML tags are &lt;strong&gt; not case sensitive,&lt;/strong&gt; &amp;lt;b&amp;gt; means the same as &amp;lt;B&amp;gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;hr /&gt;&lt;h2&gt;HTML Elements&lt;/h2&gt;&lt;p&gt;Remember the HTML example from the previous page:&lt;/p&gt;&lt;table style="width: 336px; height: 215px;" border="1" cellspacing="0"&gt;&lt;tbody&gt;&lt;br /&gt; &lt;tr&gt;&lt;br /&gt;   &lt;td&gt;&lt;pre&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Title of page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;This is my first homepage.&lt;br /&gt;&amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;    &lt;/td&gt;&lt;br /&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;This is an HTML element:&lt;table border="1" cellspacing="0" width="26%"&gt;&lt;tbody&gt;  &lt;tr&gt;&lt;br /&gt;   &lt;td&gt;&lt;pre&gt;&amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt;&lt;/pre&gt;&lt;br /&gt;   &lt;/td&gt;&lt;br /&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;The HTML element starts with a &lt;strong&gt; start tag&lt;/strong&gt;: &amp;lt;b&amp;gt;&lt;br /&gt;&lt;p&gt;The &lt;strong&gt; content&lt;/strong&gt; of the HTML element is: This text is bold&lt;br /&gt;The HTML element ends with an &lt;strong&gt; end tag&lt;/strong&gt;: &amp;lt;/b&amp;gt;&lt;/p&gt;&lt;p&gt;The purpose of the &amp;lt;b&amp;gt; tag is to define an HTML element that should be displayed as  bold.&lt;br /&gt;This is also an HTML element:&lt;/p&gt;&lt;table border="1" cellspacing="0" width="26%"&gt;&lt;tbody&gt;&lt;br /&gt; &lt;tr&gt;&lt;br /&gt;   &lt;td&gt;&lt;pre&gt;&amp;lt;body&amp;gt;&lt;br /&gt;This is my first homepage.&lt;br /&gt;&amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/pre&gt;    &lt;/td&gt;&lt;br /&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;This HTML element starts with the start tag &amp;lt;body&amp;gt;, and ends with the  end tag &amp;lt;/body&amp;gt;.The purpose of the &amp;lt;body&amp;gt; tag is to define the HTML element that  contains the body of the HTML document.&lt;hr /&gt;&lt;h2&gt;Why do We Use Lowercase Tags?&lt;/h2&gt;&lt;p&gt;We have just said that HTML tags are not case sensitive: &amp;lt;B&amp;gt; means the  same as &amp;lt;b&amp;gt;. If you surf the Web, you will notice that plenty of web sites use uppercase HTML tags in their   source code. We  always use lowercase tags. Why?&lt;/p&gt;&lt;p&gt;If you want to follow the latest web standards, you should always  use lowercase tags. The World Wide Web Consortium (W3C) recommends  lowercase tags in  their HTML 4 recommendation, and XHTML (the next generation HTML)  demands  lowercase tags.&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Tag Attributes&lt;/h2&gt;Tags can have attributes&lt;em&gt;. &lt;/em&gt;Attributes provide additional information  to an HTML element.&lt;br /&gt;The following tag defines an HTML table: &amp;lt;table&amp;gt;. With an added border attribute, you  can tell the browser that the table should have no borders: &amp;lt;table border="0"&amp;gt;Attributes always come in name/value pairs like this: name="value".&lt;br /&gt;Attributes are always specified in the start tag of an HTML element.Attributes and attribute values are also case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase   attributes/attribute values in  their HTML 4 recommendation, and XHTML demands  lowercase attributes/attribute values.&lt;br /&gt;&lt;hr /&gt;&lt;h2&gt;Always Quote Attribute Values&lt;/h2&gt;Attribute values should always be enclosed in quotes. Double style quotes are the most common,  but single style quotes are also allowed.In some rare situations, like when the attribute value itself contains  quotes, it is necessary to use single quotes:&lt;br /&gt;&lt;p&gt;name='John "ShotGun" Nelson'&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-6289650960680803269?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/6289650960680803269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=6289650960680803269&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6289650960680803269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6289650960680803269'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/html-tags.html' title='HTML Tags'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-2302886941773318074</id><published>2007-12-26T04:36:00.000-08:00</published><updated>2007-12-26T04:46:39.923-08:00</updated><title type='text'>Start Web Design</title><content type='html'>&lt;h2&gt;What is an HTML File?&lt;/h2&gt;  &lt;ul&gt;&lt;li&gt; HTML stands for &lt;b&gt;H&lt;/b&gt;yper &lt;b&gt;T&lt;/b&gt;ext &lt;b&gt;M&lt;/b&gt;arkup &lt;b&gt;L&lt;/b&gt;anguage&lt;/li&gt;&lt;li&gt;An HTML file is a text file containing small &lt;b&gt;markup tags&lt;/b&gt;&lt;/li&gt;&lt;li&gt;The markup tags tell the Web browser &lt;b&gt; how to display&lt;/b&gt; the page&lt;/li&gt;&lt;li&gt;An HTML file must have an &lt;b&gt; htm&lt;/b&gt; or &lt;b&gt; html&lt;/b&gt; file extension&lt;/li&gt;&lt;li&gt;An HTML file can be created using a &lt;b&gt;simple text editor&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;hr /&gt; &lt;h2&gt;Do You Want to Try It?&lt;/h2&gt;  &lt;p&gt;If you are running Windows, start Notepad.&lt;/p&gt;  &lt;p&gt;If you are on a Mac, start SimpleText.&lt;/p&gt;  &lt;p&gt;In OSX start TextEdit and change the following preferences: Open the the  "Format" menu and select "Plain text" instead of "Rich text".  Then open the "Preferences" window under the "Text Edit" menu and select "Ignore  rich text commands in HTML files". Your HTML code will probably not work if  you do not change the preferences above!&lt;/p&gt;  &lt;p&gt;Type in the following text:&lt;/p&gt;  &lt;table class="ex" border="1" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Title of page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;This is my first homepage.&lt;br /&gt;&amp;lt;b&amp;gt;This text is bold&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Save the file as "mypage.htm". &lt;/p&gt;  &lt;p&gt;Start your Internet browser. Select "Open" (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File") and locate the HTML file you just created - "mypage.htm" - select it and click "Open". Now you should see an address in the dialog box, for example "C:\MyDocuments\mypage.htm". Click OK, and the browser will display the page.&lt;/p&gt;  &lt;hr /&gt;  &lt;h2&gt;Example Explained&lt;/h2&gt; &lt;p&gt;The first tag in your HTML document is . This tag tells your browser that this is the start of an HTML document. The last tag in your document is . This tag tells your browser that this is the end of the HTML document.&lt;/p&gt;  &lt;p&gt;The text between the  tag and the tag is header information. Header information is not displayed in the browser window.&lt;/p&gt;  &lt;p&gt;&lt;title&gt; tags is the title of your document. The title is displayed in your browser's caption.&lt;/title&gt;The text between the &lt;/p&gt;  &lt;p&gt;The text between the  tags is the text that will be displayed in your browser.&lt;/p&gt;  &lt;p&gt;The text between the &lt;b&gt; and &lt;/b&gt; tags will be displayed in a bold font.&lt;/p&gt;  &lt;hr /&gt; &lt;h2&gt;HTM or HTML Extension?&lt;/h2&gt; &lt;p&gt;When you save an HTML file, you can use either the .htm or the .html extension. We have used .htm in our examples. It might be a bad habit inherited from the past when some of the commonly used software only allowed three letter extensions.&lt;/p&gt; &lt;p&gt;With newer software we think it will be perfectly safe to use .html.&lt;/p&gt;  &lt;hr /&gt; &lt;h2&gt;Note on HTML Editors:&lt;/h2&gt; &lt;p&gt;You can easily edit HTML files using a WYSIWYG (what you see is what you get) editor like FrontPage or Dreamweaver, instead of writing your markup tags in a plain text file.&lt;/p&gt;  &lt;p&gt;However, if you want to be a skillful Web developer, we strongly recommend that you use a plain text editor to learn your primer HTML.&lt;/p&gt;  &lt;hr /&gt;  &lt;h2&gt;Frequently Asked Questions&lt;/h2&gt;  &lt;p&gt;&lt;b&gt;Q: After I have edited an HTML file, I cannot view the result in my browser. Why?&lt;br /&gt;A: &lt;/b&gt;Make sure that you have saved the file with a proper name and extension like "c:\mypage.htm". Also make sure that you use the same name when you open the file in your browser. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Q: I have edited an HTML file, but the changes don't show in the browser. Why?&lt;br /&gt;A: &lt;/b&gt;A browser caches pages so it doesn't have to read the same page twice. When you have modified a page, the browser doesn't know that. Use the browser's refresh/reload button to force the browser to reload the page. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Q: What browser should I use?&lt;br /&gt;A: &lt;/b&gt;You can do all the training with all of the well-known browsers, like  Internet Explorer, Firefox, Netscape, or Opera. However, some of the examples in our advanced classes require the latest versions of the browsers.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Q: Does my computer have to run Windows? What about a Mac?&lt;br /&gt;A: &lt;/b&gt;You can do all your training on a non-Windows computer like a Mac.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-2302886941773318074?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/2302886941773318074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=2302886941773318074&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2302886941773318074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2302886941773318074'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/start-web-design.html' title='Start Web Design'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-4982437100404487430</id><published>2007-12-22T07:42:00.000-08:00</published><updated>2007-12-25T06:04:51.652-08:00</updated><title type='text'>SQL Server Tips</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;b&gt;1) How to start SQLServer in Single User Mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoBodyText"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;At times you might want to start SQL server in a single user mode to perform some maintenance work on the server or to change server configurations or to recover a damaged database. You can accomplish this in any of the three ways given below :-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;a) From Command Prompt :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;sqlservr -m&lt;br /&gt;&lt;br /&gt;b) From Startup Options :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Go to SQL Server Properties by right-clicking on the Server name in the Enterprise manager. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Under the 'General' tab, click on 'Startup Parameters'. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Enter a value of -m in the Parameter.&lt;br /&gt;&lt;br /&gt;c) From Registry :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Go to HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\MSSQLServer\Parameters. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Add new string value. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Specify the 'Name' as SQLArg(&lt;i&gt;n&lt;/i&gt;) &amp;amp; 'Data' as -m. &lt;br /&gt;&lt;i&gt;Where n is the argument number in the list of arguments&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Caution:&lt;/i&gt; Be careful while editing the Registry. Incorrectly setting up Registry values can cause unpredictable behavior.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;b&gt;2) How to start SQL Server in Minimal Configuration Mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoBodyText"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;Sometimes a bad configuration value can prevent SQL Server from starting. Then it won't even let you connect to SQL Server using Enterprise Manager and correct the configuration values. The only option is to start SQL Server in a minimum configuration mode and then correct the configuration values and restart the SQL Server in normal mode. Here's how you can start the SQL Server in a minimal configuration mode :-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;a) From Command Prompt :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;sqlservr -f&lt;br /&gt;&lt;br /&gt;b) From Startup Options :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Go to SQL Server Properties by right-clicking on the Server name in the Enterprise manager. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Under the 'General' tab, click on 'Startup Parameters'. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Enter a value of -f in the Parameter.&lt;br /&gt;&lt;br /&gt;c) From Registry :-&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Go to HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\MSSQLServer\Parameters. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Add new string value. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Specify the 'Name' as SQLArg(&lt;i&gt;n&lt;/i&gt;) &amp;amp; 'Data' as -f. &lt;br /&gt;&lt;i&gt;Where n is the argument number in the list of arguments&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Caution:&lt;/i&gt; Be careful while editing the Registry. Incorrectly setting up Registry values can cause unpredictable behavior.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;b&gt;3) How to get Output parameter value from Dynamic execution of a Query&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoBodyText"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;Sometimes you have to execute a Query dynamically using Exec(@Sql). This method works fine as long as you don't want any output values from the @Sql query. But there's another method (sp_Executesql) that allows you to execute queries dynamically as well as get their output values. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;The syntax :- &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;EXECUTE sp_executesql&lt;br /&gt; @SQLString,&lt;br /&gt; @ParmDefinition,&lt;br /&gt; @parm=@parmIN,&lt;br /&gt;@parm1OUT=@parmRET1 OUTPUT,@parm2OUT=@parmRET2 OUTPUT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;Example :- &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;DECLARE @IntVariable INT&lt;br /&gt;DECLARE @SQLString nVARCHAR(500)&lt;br /&gt;DECLARE @ParmDefinition nVARCHAR(500)&lt;br /&gt;DECLARE @Lastlname nVARCHAR(30)&lt;br /&gt;&lt;br /&gt;SET @SQLString = 'SELECT @LastlnameOUT = max(lname) FROM&lt;br /&gt;pubs.dbo.employee WHERE job_lvl = @level'&lt;br /&gt;&lt;br /&gt;SET @ParmDefinition = '@level tinyint, @LastlnameOUT&lt;br /&gt;varchar(30) OUTPUT'&lt;br /&gt;SET @IntVariable = 35&lt;br /&gt;EXECUTE sp_executesql @SQLString, @ParmDefinition, @level&lt;br /&gt;= @IntVariable, @LastlnameOUT=@Lastlname OUTPUT&lt;br /&gt;SELECT @Lastlname&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;br /&gt;Note: sp_Executesql is a Extended Stored Procedure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;b&gt;4) How to move Database/Transaction Log files&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;You can move Database &amp;amp; Transaction log files to a different location in 2 ways.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;span style=""&gt; &lt;/span&gt;a) sp_detach_db &amp;amp; then sp_attach_db&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Make sure that no user is using the database. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Exec sp_detach_db northwind &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Move the Data &amp;amp; log files to a different location &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;EXEC sp_attach_db 'Northwind', 'c:\mssql7\northwnd.mdf', 'c:\mssql7\northwnd.ldf'&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;b) BACKUP and RESTORE using WITH MOVE&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Backup :- &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;Backup Database Northwind To Disk = 'C:\mssql7\backup\nwind.bak' &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;Go&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Restore :- &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;USE Master &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;Go&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;RESTORE Database northwind from DISK = 'c:\mssql7\backup\nwind.bak' &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;WITH MOVE 'Northwind' TO 'c:\mssql7\Northwnd.mdf', &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;MOVE 'Northwind_log' TO 'c:\mssql7\Northwnd.ldf' &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;Go&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;c) Can be used only for moving Tempdb files.&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Use ALTER Database statement to specify a different Path for the filename. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;ALTER DATABASE Tempdb MODIFY FILE (NAME = Tempdev, FILENAME = 'c:\mssql7\tempdb.mdf')&lt;br /&gt;&lt;br /&gt;ALTER DATABASE Tempdb MODIFY FILE (NAME = Templog, FILENAME = 'c:\mssql7\templog.ldf')&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Restart SQL Server and delete the old files.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;b&gt;5) How to Rename a Database &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style=";font-family:Arial,Helvetica;font-size:100%;"  &gt;&lt;span style=""&gt; &lt;/span&gt;a) Using sp_rename&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Make sure that no user is using the database. &lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Make the database in the single user mode. You can do this by using sp_dboption.&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;sp_dboption 'Pubs', 'single user', true&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;sp_rename Pubs, Library, Database&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;Note : For renaming the database, you can also use sp_renamedb.&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;sp_renamedb Pubs, Library&lt;br /&gt;&lt;br /&gt;&lt;!--&amp;#91;if !supportLists&amp;#93;--&gt;&lt;span style="font-size:10;"&gt;&lt;span style=";font-family:Tahoma,Arial,Helvetica;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;b&gt;»&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--&amp;#91;endif&amp;#93;--&gt;Bring back the database in multiuser mode&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;sp_dboption 'Library', 'single user', false&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;b) Using Detach &amp;amp; Attach&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;sp_detach_db @dbname = N'Pubs' &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;sp_attach_db @dbname = N'Library', &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;@filename1 = N'd:\programfiles\MSSQL7\data\Pubs_Data.MDF', &lt;br /&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style=""&gt;    &lt;/span&gt;@filename2 = N'd:\program files\MSSQL7\data\Pubs_log.ldf'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-4982437100404487430?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/4982437100404487430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=4982437100404487430&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/4982437100404487430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/4982437100404487430'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/common-sql-server-questions-sql-tips.html' title='SQL Server Tips'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-3102729073867995042</id><published>2007-12-22T07:10:00.000-08:00</published><updated>2007-12-22T07:28:57.853-08:00</updated><title type='text'>Deleting table rows using Javascript</title><content type='html'>&amp;lt;&lt;strong&gt;html&lt;/strong&gt;&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;&lt;strong&gt;function &lt;/strong&gt;deleteRow(i){&lt;br /&gt;&lt;br /&gt;    document.getElementById('myTable').deleteRow(i)&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;strong&gt;body&lt;/strong&gt;&amp;gt;&lt;br /&gt;&amp;lt;table id="myTable" border="1"&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;Row 1&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;input type="button" value="Delete" onclick="deleteRow(this.parentNode.parentNode.rowIndex)"&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;Row 2&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;input type="button" value="Delete" onclick="deleteRow(this.parentNode.parentNode.rowIndex)"&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;Row 3&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;input type="button" value="Delete" onclick="deleteRow(this.parentNode.parentNode.rowIndex)"&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/&lt;strong&gt;body&lt;/strong&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;strong&gt;html&lt;/strong&gt;&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-3102729073867995042?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/3102729073867995042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=3102729073867995042&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/3102729073867995042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/3102729073867995042'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/deleting-table-rows-using-javascript.html' title='Deleting table rows using Javascript'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-8633923442523546094</id><published>2007-12-22T06:33:00.001-08:00</published><updated>2007-12-22T07:29:50.509-08:00</updated><title type='text'>Adding table rows</title><content type='html'>&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function insRow(){&lt;br /&gt; var x=document.getElementById('myTable').insertRow(2)&lt;br /&gt; var y=x.insertCell(0)&lt;br /&gt; var z=x.insertCell(1)&lt;br /&gt; y.innerHTML="NEW CELL1"&lt;br /&gt; z.innerHTML="NEW CELL2"&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;table id="myTable" border="1"&amp;gt;&lt;br /&gt; &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;d&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;d&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;d&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;d&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row3 cell1&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row3 cell2&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row4 cell1&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row4 cell2&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;tr&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row5 cell1&amp;lt;/td&amp;gt;&lt;br /&gt;     &amp;lt;td&amp;gt;Row5 cell2&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;input type="button" onclick="insRow()" value="Insert row"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-8633923442523546094?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/8633923442523546094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=8633923442523546094&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/8633923442523546094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/8633923442523546094'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/12/adding-table-rows.html' title='Adding table rows'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-4187120958724944376</id><published>2007-08-23T03:53:00.000-07:00</published><updated>2007-12-22T06:32:16.576-08:00</updated><title type='text'>ALL SQL Connection Strings</title><content type='html'>Sybase.Data.AseClient&lt;br /&gt;&lt;br /&gt;The ASE .NET Data Provider is an add-on component to the .NET 1.1 Framework that allows you to access a Sybase Adaptive Server Enterprise (ASE) database.&lt;br /&gt;Using C#&lt;br /&gt;using Sybase.Data.AseClient;&lt;br /&gt;AseConnection oAseConn = new AseConnection();&lt;br /&gt;oAseConn.ConnectionString = "Data Source=(local);" +&lt;br /&gt;                          "Initial Catalog=myDatabaseName;" +&lt;br /&gt;                          "User ID=myUsername;" +&lt;br /&gt;                          "Password=myPassword"&lt;br /&gt;oAseConn.Open();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports System.Data.AseClient&lt;br /&gt;...&lt;br /&gt;Dim oAseConn As AseConnection = New AseConnection()&lt;br /&gt;oAseConn.ConnectionString = "Data Source=(local);" &amp;amp; _&lt;br /&gt;                          "Initial Catalog=myDatabaseName;" &amp;amp; _&lt;br /&gt;                          "User ID=myUsername;" &amp;amp; _&lt;br /&gt;                          "Password=myPassword"&lt;br /&gt;oAseConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: ASE User's Guide&lt;br /&gt;&lt;br /&gt;    * MySQLDirect .NET Data Provider&lt;br /&gt;      CoreLab.MySql&lt;br /&gt;&lt;br /&gt;The MySQLDirect .NET Data Provider is an add-on component to the&lt;br /&gt;.NET Framework that allows you to access the MySQL database using&lt;br /&gt;native MySQL network protocol or MySQL client, without going through&lt;br /&gt;OLE DB or ODBC.&lt;br /&gt;&lt;br /&gt;Using C#&lt;br /&gt;&lt;br /&gt;using CoreLab.MySql;&lt;br /&gt;&lt;br /&gt;MySqlConnection oMySqlConn = new MySqlConnection();&lt;br /&gt;oMySqlConn.ConnectionString = "User ID=myUsername;" +&lt;br /&gt;                            "Password=myPassword;" +&lt;br /&gt;                            "Host=localhost;" +&lt;br /&gt;                            "Port=3306;" +&lt;br /&gt;                            "Database=myDatabaseName;" +&lt;br /&gt;                            "Direct=true;" +&lt;br /&gt;                            "Protocol=TCP;" +&lt;br /&gt;                            "Compress=false;" +&lt;br /&gt;                            "Pooling=true;" +&lt;br /&gt;                            "Min Pool Size=0;" +&lt;br /&gt;                            "Max Pool Size=100;" +&lt;br /&gt;                            "Connection Lifetime=0";&lt;br /&gt;oMySqlConn.Open();&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports CoreLab.MySql&lt;br /&gt;&lt;br /&gt;Dim oMySqlConn As MySqlConnection = New MySqlConnection()&lt;br /&gt;oMySqlConn.ConnectionString = "User ID=myUsername;" &amp;amp; _&lt;br /&gt;                            "Password=myPassword;" &amp;amp; _&lt;br /&gt;                            "Host=localhost;" &amp;amp; _&lt;br /&gt;                            "Port=3306;" &amp;amp; _&lt;br /&gt;                            "Database=myDatabaseName;" &amp;amp; _&lt;br /&gt;                            "Direct=true;" &amp;amp; _&lt;br /&gt;                            "Protocol=TCP;" &amp;amp; _&lt;br /&gt;                            "Compress=false;" &amp;amp; _&lt;br /&gt;                            "Pooling=true;" &amp;amp; _&lt;br /&gt;                            "Min Pool Size=0;" &amp;amp; _&lt;br /&gt;                            "Max Pool Size=100;" &amp;amp; _&lt;br /&gt;                            "Connection Lifetime=0"&lt;br /&gt;oMySqlConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: CoreLab's MySqlDirect .NET Data Provider&lt;br /&gt;&lt;br /&gt;    * ODBC .NET Data Provider&lt;br /&gt;      System.Data.ODBC&lt;br /&gt;&lt;br /&gt;The Open Database Connectivity (ODBC) .NET Data Provider is an add-on component to the .NET Framework. It provides access to native ODBC drivers the same way the OLE DB .NET Data Provider provides access to native OLE DB providers.&lt;br /&gt;&lt;br /&gt;Note: This technology is included in version 1.1 of the .NET Framework. You need only download this, if you are running version 1.0.&lt;br /&gt;&lt;br /&gt;For SQL Server ODBC Driver&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.Odbc&lt;br /&gt;...&lt;br /&gt;Dim oODBCConnection As OdbcConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;        "Driver=;" &amp;amp; _&lt;br /&gt;        "Server=MySQLServerName;" &amp;amp; _&lt;br /&gt;        "Database=MyDatabaseName;" &amp;amp; _&lt;br /&gt;        "Uid=MyUsername;" &amp;amp; _&lt;br /&gt;        "Pwd=MyPassword"&lt;br /&gt;oODBCConnection = New Odbc.OdbcConnection(sConnString)&lt;br /&gt;oODBCConnection.Open()&lt;br /&gt;&lt;br /&gt;For Oracle ODBC Driver&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.Odbc&lt;br /&gt;...&lt;br /&gt;Dim oODBCConnection As OdbcConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Driver={Microsoft ODBC for Oracle};" &amp;amp; _&lt;br /&gt;       "Server=OracleServer.world;" &amp;amp; _&lt;br /&gt;       "Uid=myUsername;" &amp;amp; _&lt;br /&gt;       "Pwd=myPassword"&lt;br /&gt;oODBCConnection = New Odbc.OdbcConnection(sConnString)&lt;br /&gt;oODBCConnection.Open()&lt;br /&gt;&lt;br /&gt;For Access (JET) ODBC Driver&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.Odbc&lt;br /&gt;...&lt;br /&gt;Dim oODBCConnection As OdbcConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Driver={Microsoft Access Driver (*.mdb)};" &amp;amp; _&lt;br /&gt;       "Dbq=c:somepathmydb.mdb;" &amp;amp; _&lt;br /&gt;       "Uid=Admin;" &amp;amp; _&lt;br /&gt;       "Pwd="&lt;br /&gt;oODBCConnection = New Odbc.OdbcConnection(sConnString)&lt;br /&gt;oODBCConnection.Open()&lt;br /&gt;&lt;br /&gt;For Sybase System 11 ODBC Driver&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.Odbc&lt;br /&gt;...&lt;br /&gt;Dim oODBCConnection As OdbcConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;     "Driver=;" &amp;amp; _&lt;br /&gt;                 "SRVR=mySybaseServerName;" &amp;amp; _&lt;br /&gt;                 "DB=myDatabaseName;" &amp;amp; _&lt;br /&gt;                 "UID=myUsername;" &amp;amp; _&lt;br /&gt;                 "PWD=myPassword"&lt;br /&gt;oODBCConnection = New OdbcConnection(sConnString)&lt;br /&gt;oODBCConnection.Open()&lt;br /&gt;&lt;br /&gt;For all other ODBC Drivers&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.Odbc&lt;br /&gt;...&lt;br /&gt;Dim oODBCConnection As OdbcConnection&lt;br /&gt;Dim sConnString As String = "Dsn=myDsn;" &amp;amp; _&lt;br /&gt;                           "Uid=myUsername;" &amp;amp; _&lt;br /&gt;                          "Pwd=myPassword"&lt;br /&gt;oODBCConnection = New Odbc.OdbcConnection(sConnString)&lt;br /&gt;oODBCConnection.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: OdbcConnection Class and .NET Data Providers&lt;br /&gt;&lt;br /&gt;To view Microsoft KB articles related to OdbcConnection, click here&lt;br /&gt;&lt;br /&gt;    * OLE DB .NET Data Provider&lt;br /&gt;      System.Data.OleDb&lt;br /&gt;&lt;br /&gt;The Microsoft .NET Framework Data Provider for OLE DB allow you to use native OLE DB providers (e.g. Microsoft.JET.OLEDB.4.0) through COM interop to enable data access.&lt;br /&gt;&lt;br /&gt;The Microsoft .NET Framework Data Provider for OLE DB is included in both the 1.0 and 1.1 version of the .NET Framework.&lt;br /&gt;&lt;br /&gt;For IBM AS/400 OLE DB Provider&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;...&lt;br /&gt;Dim oOleDbConnection As OleDbConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;         "Provider=IBMDA400.DataSource.1;" &amp;amp; _&lt;br /&gt;         "Data source=myAS400DbName;" &amp;amp; _&lt;br /&gt;         "User Id=myUsername;" &amp;amp; _&lt;br /&gt;         "Password=myPassword"&lt;br /&gt;oOleDbConnection = New OleDb.OleDbConnection(sConnString)&lt;br /&gt;oOleDbConnection.Open()&lt;br /&gt;&lt;br /&gt;For JET OLE DB Provider&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;...&lt;br /&gt;Dim oOleDbConnection As OleDbConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Provider=Microsoft.Jet.OLEDB.4.0;" &amp;amp; _&lt;br /&gt;       "Data Source=C:myPathmyJet.mdb;" &amp;amp; _&lt;br /&gt;       "User ID=Admin;" &amp;amp; _&lt;br /&gt;       "Password="&lt;br /&gt;oOleDbConnection = New OleDb.OleDbConnection(sConnString)&lt;br /&gt;oOleDbConnection.Open()&lt;br /&gt;&lt;br /&gt;For Oracle OLE DB Provider&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;...&lt;br /&gt;Dim oOleDbConnection As OleDbConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Provider=OraOLEDB.Oracle;" &amp;amp; _&lt;br /&gt;       "Data Source=MyOracleDB;" &amp;amp; _&lt;br /&gt;       "User ID=myUsername;" &amp;amp; _&lt;br /&gt;       "Password=myPassword"&lt;br /&gt;oOleDbConnection = New OleDb.OleDbConnection(sConnString)&lt;br /&gt;oOleDbConnection.Open()&lt;br /&gt;&lt;br /&gt;For SQL Server OLE DB Provider&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;...&lt;br /&gt;Dim oOleDbConnection As OleDbConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Provider=sqloledb;" &amp;amp; _&lt;br /&gt;       "Data Source=myServerName;" &amp;amp; _&lt;br /&gt;       "Initial Catalog=myDatabaseName;" &amp;amp; _&lt;br /&gt;       "User Id=myUsername;" &amp;amp; _&lt;br /&gt;       "Password=myPassword"&lt;br /&gt;oOleDbConnection = New OleDb.OleDbConnection(sConnString)&lt;br /&gt;oOleDbConnection.Open()&lt;br /&gt;&lt;br /&gt;For Sybase ASE OLE DB Provider&lt;br /&gt;&lt;br /&gt;' VB.NET&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;...&lt;br /&gt;Dim oOleDbConnection As OleDbConnection&lt;br /&gt;Dim sConnString As String = _&lt;br /&gt;       "Provider=Sybase ASE OLE DB Provider;" &amp;amp; _&lt;br /&gt;       "Data Source=MyDataSourceName;" &amp;amp; _&lt;br /&gt;       "Server Name=MyServerName;" &amp;amp; _&lt;br /&gt;       "Database=MyDatabaseName;" &amp;amp; _&lt;br /&gt;       "User ID=myUsername;" &amp;amp; _&lt;br /&gt;       "Password=myPassword"&lt;br /&gt;oOleDbConnection = New OleDb.OleDbConnection(sConnString)&lt;br /&gt;oOleDbConnection.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: OleDbConnection Class and .NET Data Providers&lt;br /&gt;&lt;br /&gt;To view Microsoft KB articles related to OleDbConnection, click here&lt;br /&gt;&lt;br /&gt;    * Oracle .NET Data Provider - From Microsoft&lt;br /&gt;      System.Data.OracleClient&lt;br /&gt;&lt;br /&gt;The Microsoft .NET Framework Data Provider for Oracle is an add-on component to the .NET Framework 1.0 that provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software.&lt;br /&gt;&lt;br /&gt;Oracle 8i Release 3 (8.1.7) Client or later must be installed for this provider to function correctly.&lt;br /&gt;&lt;br /&gt;Note: This .NET Data Provider is included in version 1.1 of the .NET Framework. You need only download this, if you are running version 1.0.&lt;br /&gt;&lt;br /&gt;Using C#:&lt;br /&gt;&lt;br /&gt;using System.Data.OracleClient;&lt;br /&gt;&lt;br /&gt;OracleConnection oOracleConn = new OracleConnection();&lt;br /&gt;oOracleConn.ConnectionString = "Data Source=Oracle8i;" +&lt;br /&gt;                             "Integrated Security=SSPI";&lt;br /&gt;oOracleConn.Open();&lt;br /&gt;&lt;br /&gt;Using VB.NET:&lt;br /&gt;&lt;br /&gt;Imports System.Data.OracleClient&lt;br /&gt;&lt;br /&gt;Dim oOracleConn As OracleConnection = New OracleConnection()&lt;br /&gt;oOracleConn.ConnectionString = "Data Source=Oracle8i;" &amp;amp; _&lt;br /&gt;                             "Integrated Security=SSPI";&lt;br /&gt;oOracleConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: OracleConnection Class and .NET Data Providers&lt;br /&gt;&lt;br /&gt;To view Microsoft KB articles related to OracleConnection, click here&lt;br /&gt;&lt;br /&gt;    * Oracle .NET Data Provider - From Oracle&lt;br /&gt;      Oracle.DataAccess.Client&lt;br /&gt;&lt;br /&gt;The Oracle .NET Framework Data Provider from Oracle is an add-on component to the .NET Framework.&lt;br /&gt;&lt;br /&gt;Using C#&lt;br /&gt;&lt;br /&gt;using Oracle.DataAccess.Client;&lt;br /&gt;...&lt;br /&gt;OracleConnection oOracleConn = new OracleConnection();&lt;br /&gt;oOracleConn.ConnectionString = "Data Source=MyOracleServerName;" +&lt;br /&gt;                             "Integrated Security=SSPI";&lt;br /&gt;oOracleConn.Open();&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports Oracle.DataAccess.Client&lt;br /&gt;...&lt;br /&gt;Dim oOracleConn As OracleConnection = New OracleConnection()&lt;br /&gt;oOracleConn.ConnectionString = "Data Source=MyOracleServerName;" &amp;amp; _&lt;br /&gt;                             "Integrated Security=SSPI";&lt;br /&gt;oOracleConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: Oracle Data Provider for .NET&lt;br /&gt;&lt;br /&gt;    * OraDirect .NET Data Provider - From CoreLab&lt;br /&gt;      CoreLab.Oracle&lt;br /&gt;&lt;br /&gt;The OraDirect .NET Data Provider is an add-on component to the .NET&lt;br /&gt;Framework that provides access to an Oracle database using the Oracle&lt;br /&gt;Call Interface (OCI) as provided by Oracle Client software.&lt;br /&gt;&lt;br /&gt;Using C#&lt;br /&gt;&lt;br /&gt;using CoreLab.Oracle;&lt;br /&gt;&lt;br /&gt;OracleConnection oOracleConn = new OracleConnection();&lt;br /&gt;oOracleConn.ConnectionString = "User ID=myUsername;" +&lt;br /&gt;                            "Password=myPassword;" +&lt;br /&gt;                            "Host=(local);" +&lt;br /&gt;                            "Pooling=true;" +&lt;br /&gt;                            "Min Pool Size=0;" +&lt;br /&gt;                            "Max Pool Size=100;" +&lt;br /&gt;                            "Connection Lifetime=0";&lt;br /&gt;oOracleConn.Open();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports CoreLab.Oracle&lt;br /&gt;&lt;br /&gt;Dim oOracleConn As OracleConnection = New OracleConnection()&lt;br /&gt;oOracleConn.ConnectionString = "User ID=myUsername;" &amp;amp; _&lt;br /&gt;                            "Password=myPassword;" &amp;amp; _&lt;br /&gt;                            "Host=(local);" &amp;amp; _&lt;br /&gt;                            "Pooling=true;" &amp;amp; _&lt;br /&gt;                            "Min Pool Size=0;" &amp;amp; _&lt;br /&gt;                            "Max Pool Size=100;" &amp;amp; _&lt;br /&gt;                            "Connection Lifetime=0"&lt;br /&gt;oOracleConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: OraDirect .NET Data Provider&lt;br /&gt;&lt;br /&gt;    * MySQL .NET Data Provider&lt;br /&gt;      EID.MySqlClient&lt;br /&gt;&lt;br /&gt;The MySQL .NET Native Provider is an add-on component to the .NET Framework that allows you to access the MySQL database through&lt;br /&gt;the native protocol, without going through OLE DB or ODBC.&lt;br /&gt;&lt;br /&gt;Using C#&lt;br /&gt;&lt;br /&gt;using EID.MySqlClient;&lt;br /&gt;...&lt;br /&gt;MySqlConnection oMySqlConn = new MySqlConnection();&lt;br /&gt;oMySqlConn.ConnectionString = "Data Source=(local);" +&lt;br /&gt;                            "Database=myDatabaseName;" +&lt;br /&gt;                            "User ID=myUsername;" +&lt;br /&gt;                            "Password=myPassword;" +&lt;br /&gt;                            "Command Logging=false";&lt;br /&gt;oMySqlConn.Open();&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports EID.MySqlClient&lt;br /&gt;...&lt;br /&gt;Dim oMySqlConn As MySqlConnection = New MySqlConnection()&lt;br /&gt;oMySqlConn.ConnectionString = "Data Source=(local);"  &amp;amp; _&lt;br /&gt;                            "Database=myDatabaseName;"  &amp;amp; _&lt;br /&gt;                            "User ID=myUsername;"  &amp;amp; _&lt;br /&gt;                            "Password=myPassword;"  &amp;amp; _&lt;br /&gt;                            "Command Logging=false"&lt;br /&gt;oMySqlConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: EID's MySQL ADO.NET native provider&lt;br /&gt;&lt;br /&gt;    * PostgreSQLDirect .NET Data Provider&lt;br /&gt;      CoreLab.PostgreSql&lt;br /&gt;&lt;br /&gt;The PostgreSQLDirect .NET Data Provider is an add-on component to the&lt;br /&gt;.NET Framework that allows you to access the PostgreSQL database using&lt;br /&gt;native message-based protocol, without going through OLE DB or ODBC.&lt;br /&gt;&lt;br /&gt;Using C#&lt;br /&gt;&lt;br /&gt;using CoreLab.PostgreSql;&lt;br /&gt;&lt;br /&gt;PgSqlConnection oPgSqlConn = new PgSqlConnection();&lt;br /&gt;oPgSqlConn.ConnectionString = "User ID=myUsername;" +&lt;br /&gt;                            "Password=myPassword;" +&lt;br /&gt;                            "Host=localhost;" +&lt;br /&gt;                            "Port=5432;" +&lt;br /&gt;                            "Database=myDatabaseName;" +&lt;br /&gt;                            "Pooling=true;" +&lt;br /&gt;                            "Min Pool Size=0;" +&lt;br /&gt;                            "Max Pool Size=100;" +&lt;br /&gt;                            "Connection Lifetime=0";&lt;br /&gt;oPgSqlConn.Open();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using VB.NET&lt;br /&gt;&lt;br /&gt;Imports CoreLab.PostgreSql&lt;br /&gt;&lt;br /&gt;Dim oPgSqlConn As PgSqlConnection = New PgSqlConnection()&lt;br /&gt;oPgSqlConn.ConnectionString = "User ID=myUsername;" &amp;amp; _&lt;br /&gt;                            "Password=myPassword;" &amp;amp; _&lt;br /&gt;                            "Host=localhost;" &amp;amp; _&lt;br /&gt;                            "Port=5432;" &amp;amp; _&lt;br /&gt;                            "Database=myDatabaseName;" &amp;amp; _&lt;br /&gt;                            "Pooling=true;" &amp;amp; _&lt;br /&gt;                            "Min Pool Size=0;" &amp;amp; _&lt;br /&gt;                            "Max Pool Size=100;" &amp;amp; _&lt;br /&gt;                            "Connection Lifetime=0"&lt;br /&gt;oPgSqlConn.Open()&lt;br /&gt;&lt;br /&gt;For more information, see: PostgreSQLDirect .NET Data Provider&lt;br /&gt;&lt;br /&gt;    * SQL Server .NET Data Provider&lt;br /&gt;      System.Data.SqlClient&lt;br /&gt;&lt;br /&gt;The SQL Server .NET Data Provide allows you to connect to a Microsoft SQL Server 7.0 or 2000 database. For Microsoft SQL Server 6.5 or earlier, use the OLE DB .NET Data Provider with the "SQL Server OLE DB Provider" (SQLOLEDB).&lt;br /&gt;&lt;br /&gt;Note: The SQL Server .NET Data Provider knows which data provider it is. Hence the "provider=" part of the connection string is not needed.&lt;br /&gt;&lt;br /&gt;Using C#:&lt;br /&gt;&lt;br /&gt;using System.Data.SqlClient;&lt;br /&gt;...&lt;br /&gt;SqlConnection oSQLConn = new SqlConnection();&lt;br /&gt;oSQLConn.ConnectionString = "Data Source=(local);" +&lt;br /&gt;                          "Initial Catalog=myDatabaseName;" +&lt;br /&gt;                          "Integrated Security=SSPI";&lt;br /&gt;oSQLConn.Open();&lt;br /&gt;&lt;br /&gt;Using VB.NET:&lt;br /&gt;&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;...&lt;br /&gt;Dim oSQLConn As SqlConnection = New SqlConnection()&lt;br /&gt;oSQLConn.ConnectionString = "Data Source=(local);" &amp;amp; _&lt;br /&gt;                          "Initial Catalog=myDatabaseName;" &amp;amp; _&lt;br /&gt;                          "Integrated Security=SSPI"&lt;br /&gt;oSQLConn.Open()&lt;br /&gt;&lt;br /&gt;If connection to a remote server (via IP address):&lt;br /&gt;&lt;br /&gt;oSQLConn.ConnectionString = "Network Library=DBMSSOCN;" &amp;amp; _&lt;br /&gt;                          "Data Source=xxx.xxx.xxx.xxx,1433;" &amp;amp; _&lt;br /&gt;                          "Initial Catalog=myDatabaseName;" &amp;amp; _&lt;br /&gt;                          "User ID=myUsername;" &amp;amp; _&lt;br /&gt;                          "Pas sword=myPassword"&lt;br /&gt;&lt;br /&gt;Where:&lt;br /&gt;- "Network Library=DBMSSOCN" tells SqlConnection to use TCP/IP Q238949&lt;br /&gt;- xxx.xxx.xxx.xxx is an IP address.&lt;br /&gt;- 1433 is the default port number for SQL Server. Q269882 and Q287932&lt;br /&gt;- You can also add "Encrypt=yes" for encryption&lt;br /&gt;&lt;br /&gt;For more information, see: SqlConnection Class, Q308656, and .NET Data Providers&lt;br /&gt;&lt;br /&gt;Note: Microsoft SQLXML Managed Classes exposes the functionality of SQLXML inside the Microsoft .NET Framework.&lt;br /&gt;&lt;br /&gt;To view Microsoft KB articles related to SQLClient, click here&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-4187120958724944376?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/4187120958724944376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=4187120958724944376&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/4187120958724944376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/4187120958724944376'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/all-sql-connection-strings.html' title='ALL SQL Connection Strings'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-6126299167408712027</id><published>2007-08-19T03:55:00.000-07:00</published><updated>2007-08-19T04:12:14.705-07:00</updated><title type='text'>Use the WebBrowser control</title><content type='html'>&lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table border="2" cellpadding="2" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="left"&gt;Title&lt;/th&gt;&lt;td width="100%"&gt;Make a Web browser that can only view certain URLs&lt;/td&gt;&lt;/tr&gt;                   &lt;tr&gt;&lt;th align="left"&gt;Keywords&lt;/th&gt;&lt;td&gt;Web browser, restrict, URL&lt;/td&gt;&lt;/tr&gt;                   &lt;tr&gt;&lt;th align="left"&gt;Categories&lt;/th&gt;&lt;td&gt;Utilities, Controls, Internet&lt;/td&gt;&lt;/tr&gt;                 &lt;/tbody&gt;&lt;/table&gt;               &lt;/td&gt;&lt;/tr&gt;                &lt;!-- Text content --&gt;               &lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;               &lt;tr&gt;&lt;td&gt; Use the WebBrowser control. In its BeforeNavigate2 event handler, examine the URL. If the URL is not allowed, set Cancel to True. &lt;p&gt; Also set Cancel to True in the NewWindow2 event handler so the user cannot open a link in a new window. &lt;/p&gt;&lt;p&gt; This example allows only URLs that begin with "http://mcp-vb.blogspot.com/"               &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;                &lt;!-- Code content --&gt;               &lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;               &lt;tr&gt;                 &lt;td background="computer_paper.jpg"&gt;                   &lt;pre&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;WebBrowser1.Navigate "http://mcp-vb.blogspot.com/"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;' Cancel any navigation that moves outside VB helper.&lt;br /&gt;Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As _&lt;br /&gt;Object, URL As Variant, Flags As Variant, _&lt;br /&gt;TargetFrameName As Variant, PostData As Variant, _&lt;br /&gt;Headers As Variant, Cancel As Boolean)&lt;br /&gt;Const TARGET = "http://mcp-vb.blogspot.com/"&lt;br /&gt;&lt;br /&gt;Cancel = (LCase$(Left$(URL, Len(TARGET))) &lt;&gt; TARGET)&lt;br /&gt;If Cancel Then MsgBox URL &amp;amp; " is blocked"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;' Don't let the user open a new window.&lt;br /&gt;Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel _&lt;br /&gt;As Boolean)&lt;br /&gt;Cancel = True&lt;br /&gt;MsgBox "You cannot open a new window."&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-6126299167408712027?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/6126299167408712027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=6126299167408712027&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6126299167408712027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6126299167408712027'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/use-webbrowser-control.html' title='Use the WebBrowser control'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-6324944378749467708</id><published>2007-08-19T03:47:00.000-07:00</published><updated>2007-08-19T04:19:16.913-07:00</updated><title type='text'>Use linkserver to Excel Spreadsheet</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Use the Microsoft OLE DB Provider for Jet on an Excel Spreadsheet&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To create a linked server definition using the Microsoft OLE DB Provider for Jet to access an Excel spreadsheet, first create a named range in Excel specifying the columns and rows of the Excel worksheet to select. The name of the range can then be referenced as a table name in a distributed query.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;EXEC sp_addlinkedserver 'ExcelSource',&lt;br /&gt;  'Jet 4.0',&lt;br /&gt;  'Microsoft.Jet.OLEDB.4.0',&lt;br /&gt;  'd:\book1.xls',&lt;br /&gt;  NULL,&lt;br /&gt;  'Excel 5.0'&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In order to access data from an Excel spreadsheet, associate a range of cells with a name. A given named range can be accessed by using the name of the range as the table name. The following query can be used to access a named range called Sheet1 using the linked server set up as above.&lt;br /&gt;&lt;br /&gt;SELECT * FROM ExcelSource...Sheet1$&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Drop That link Server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;sp_dropserver 'ExcelSource'&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-6324944378749467708?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/6324944378749467708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=6324944378749467708&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6324944378749467708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6324944378749467708'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/use-linkserver-to-excel-spreadsheet.html' title='Use linkserver to Excel Spreadsheet'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-5092636222342914111</id><published>2007-08-19T03:42:00.000-07:00</published><updated>2007-08-19T03:44:46.777-07:00</updated><title type='text'>Toggle ShowInTaskbar at Run Time</title><content type='html'>&lt;span style="color: rgb(51, 102, 102);font-family:Arial;font-size:100%;"  &gt;&lt;b&gt;Q&lt;/b&gt;.&lt;/span&gt; &lt;b&gt;Toggle ShowInTaskbar at Run Time&lt;br /&gt;&lt;/b&gt;In the process of making a window appear in the taskbar, why did Microsoft make the ShowInTaskbar property read-only at run time?  &lt;p&gt;&lt;span style="color: rgb(51, 102, 102);font-family:Arial;font-size:100%;"  &gt;&lt;b&gt;A&lt;/b&gt;.&lt;/span&gt; Good question. ShowInTaskbar is another property that's ideally suited for addition to the CFormBorder class, which sets many normally untouchable properties at run time (see the November 2000 Ask the VB Pro column). The Property Let/Get pair simply locks the window from update to prevent flicker, hides the window, toggles the WS_EX_APPWINDOW extended style bit, then shows and unlocks the. Use the class from your form like this:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;' Border handler class&lt;br /&gt;Private m_bdr As CFormBorder&lt;br /&gt;&lt;br /&gt;Private Sub Check1_Click()&lt;br /&gt;' Toggle replacement property&lt;br /&gt;m_bdr.ShowInTaskbar = _&lt;br /&gt;  CBool(Check1.Value)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;' Set up replacement properties&lt;br /&gt;Set m_bdr = New CFormBorder&lt;br /&gt;Set m_bdr.Client = Me&lt;br /&gt;End Sub&lt;/code&gt;&lt;/pre&gt;  &lt;p&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 102);font-family:Arial;font-size:100%;"  &gt;&lt;b&gt;Q&lt;/b&gt;.&lt;/span&gt; &lt;b&gt;Obtain the Domain Controller Name&lt;br /&gt;&lt;/b&gt;I've been looking at some of the new functions that come built into Windows 2000, and I found one I'd like to use. The DsGetDcName API looks extremely useful, but no matter what I try, I can't make sense of the pointer returned in DomainControllerInfo, the last parameter.&lt;/p&gt;  &lt;p&gt;&lt;span style="color: rgb(51, 102, 102);font-family:Arial;font-size:100%;"  &gt;&lt;b&gt;A&lt;/b&gt;.&lt;/span&gt; The SDK docs appear to be less than clear in this case. That parameter is documented as a "Pointer to a variable that receives a pointer to a structure... ." However, it appears that DomainControllerInfo is a pointer to a buffer that contains the data. &lt;/p&gt;  &lt;p&gt;Given that clue, you can declare a DOMAIN_CONTROLLER_INFO consisting entirely of Longs and a GUID, and use CopyMemory to sling the API-provided bits into your local structure. You still need to dereference the strings so you can declare a more VB-friendly structure and use it as the destination for the recovered strings. Finally, you need to free the API-allocated buffer with a call to NetApiBufferFree (see Listing 3).&lt;/p&gt;  &lt;p&gt;For more information on dereferencing API pointers, see the detailed techniques examined in the November 1999 Ask the VB Pro column. In the future, I'll discuss how I determined the SDK docs were misleading and how you can expand on this lesson to solve your own memory-based mysteries. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-5092636222342914111?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/5092636222342914111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=5092636222342914111&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/5092636222342914111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/5092636222342914111'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/toggle-showintaskbar-at-run-time.html' title='Toggle ShowInTaskbar at Run Time'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-7233725129894668474</id><published>2007-08-15T03:33:00.000-07:00</published><updated>2007-08-15T05:00:03.628-07:00</updated><title type='text'>All ASP Server Variables</title><content type='html'>How many server variables are available for use in your .asp scripts?  Display them all with this simple script. &lt;br /&gt;&lt;br /&gt;-----------------&lt;br /&gt;for each name in request.servervariables&lt;br /&gt; response.write name &lt;br /&gt; request.servervariables(name) &lt;br /&gt;Next&lt;br /&gt;-----------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-7233725129894668474?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/7233725129894668474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=7233725129894668474&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7233725129894668474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7233725129894668474'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/all-asp-server-variables.html' title='All ASP Server Variables'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-7125315181884148553</id><published>2007-08-15T02:50:00.000-07:00</published><updated>2007-08-15T04:59:37.513-07:00</updated><title type='text'>Get the Source of an .asp Document</title><content type='html'>Viewing the source of an asp document from a web browser allows only for the viewing of the output html text. Any text written in between  &lt;% %&gt; is not outputted to the browser unless a write command is inserted. This is good for security, but bad for developers who made need to look at the code and do not have a local copy. The following script will read any text file (.asp, .html, .inc are all examples) and output it to the browser by changing the page_to_read value to a document relative to the position of the .asp code your using to read it (Example to read the index.asp document in the parent directory it should read page_to_read="../index.asp")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------&lt;br /&gt;' Target page to be read&lt;br /&gt;page_to_read="view_source.asp"&lt;br /&gt;&lt;br /&gt;' Create a server object&lt;br /&gt;set fso = createobject("scripting.filesystemobject")&lt;br /&gt;&lt;br /&gt;' Set the path to document to be read&lt;br /&gt;set act = fso.opentextfile(server.mappath(page_to_read))&lt;br /&gt;&lt;br /&gt;' Read the contents of the document to the&lt;br /&gt;' read_text variable&lt;br /&gt;&lt;br /&gt;read_text = act.readall&lt;br /&gt;&lt;br /&gt;' Close the server object&lt;br /&gt;act.close&lt;br /&gt;&lt;br /&gt;' Write the inputted text out to the browser&lt;br /&gt;' and html encode it to display as source&lt;br /&gt;' enclosed in &lt;pre&gt; tags to display as read&lt;br /&gt;response.write "&lt;pre&gt;" &amp; server.htmlencode(read_text) &amp; "&lt;/pre&gt;"&lt;br /&gt;&lt;br /&gt;------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-7125315181884148553?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/7125315181884148553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=7125315181884148553&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7125315181884148553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7125315181884148553'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/get-source-of-asp-document.html' title='Get the Source of an .asp Document'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-3870178611257406545</id><published>2007-08-15T02:31:00.000-07:00</published><updated>2007-08-15T02:41:31.397-07:00</updated><title type='text'>How to find Harddisk SerialNumber</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How to find Harddisk SerialNumber ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;### Computer Unique No or hard drive serialNumber From Visual Basic &lt;br /&gt;&lt;br /&gt;Private Declare Function GetVolumeInformation _&lt;br /&gt;                Lib "kernel32.dll" _&lt;br /&gt;                Alias "GetVolumeInformationA" _&lt;br /&gt;               (ByVal lpRootPathName As String, _&lt;br /&gt;                ByVal lpVolumeNameBuffer As String, _&lt;br /&gt;                ByVal nVolumeNameSize As Integer, _&lt;br /&gt;                lpVolumeSerialNumber As Long, _&lt;br /&gt;                lpMaximumComponentLength As Long, _&lt;br /&gt;                lpFileSystemFlags As Long, _&lt;br /&gt;                ByVal lpFileSystemNameBuffer As String, _&lt;br /&gt;                ByVal nFileSystemNameSize As Long) As Long&lt;br /&gt;&lt;br /&gt;############ This Function will return SerialNumber of a Drive&lt;br /&gt;&lt;br /&gt;Public Function GetSerialNumber(DriveLetter As String) As String&lt;br /&gt;&lt;br /&gt;    Dim SerialNum As Long&lt;br /&gt;    Dim VolNameBuf As String&lt;br /&gt;    Dim FileSysNameBuf As String&lt;br /&gt;    &lt;br /&gt;    Select Case Len(DriveLetter)&lt;br /&gt;      Case 1&lt;br /&gt;        If DriveLetter Like "[a-z]" Then&lt;br /&gt;          DriveLetter = Left$(DriveLetter, 1) &amp; ":\"&lt;br /&gt;        Else&lt;br /&gt;          GetSerialNumber = "Error - Bad drive designation"&lt;br /&gt;        End If&lt;br /&gt;      Case 2&lt;br /&gt;        If LCase(DriveLetter) Like "[a-z]:" Then&lt;br /&gt;          DriveLetter = DriveLetter &amp; "\"&lt;br /&gt;        Else&lt;br /&gt;          GetSerialNumber = "Error - Bad drive designation"&lt;br /&gt;        End If&lt;br /&gt;      Case 3&lt;br /&gt;        If LCase(DriveLetter) Like "[!a-z]:\" Then&lt;br /&gt;          GetSerialNumber = "Error - Bad drive designation"&lt;br /&gt;        End If&lt;br /&gt;      Case Else&lt;br /&gt;        GetSerialNumber = "Error - Bad drive designation"&lt;br /&gt;    End Select&lt;br /&gt;    &lt;br /&gt;    If Len(GetSerialNumber) = 0 Then&lt;br /&gt;      VolNameBuf = String$(255, Chr$(0))&lt;br /&gt;      FileSysNameBuf = String$(255, Chr$(0))&lt;br /&gt;      GetVolumeInformation DriveLetter, VolNameBuf, _&lt;br /&gt;                           Len(VolNameBuf), SerialNum, 0, 0, _&lt;br /&gt;                           FileSysNameBuf, Len(FileSysNameBuf)&lt;br /&gt;      GetSerialNumber = Right$("00000000" &amp; Hex$(SerialNum), 8)&lt;br /&gt;    End If&lt;br /&gt;End Function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-3870178611257406545?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/3870178611257406545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=3870178611257406545&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/3870178611257406545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/3870178611257406545'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/how-to-find-harddisk-serialnumber.html' title='How to find Harddisk SerialNumber'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-7952884712639220620</id><published>2007-08-15T02:00:00.000-07:00</published><updated>2007-08-15T02:07:08.288-07:00</updated><title type='text'>The FileSystemObject Object</title><content type='html'>&lt;p&gt;The FileSystemObject object is used to access the file system on the server. This object can manipulate files, folders, and directory paths. It is also possible to retrieve file system information with this object.&lt;/p&gt;  &lt;p&gt;The following code creates a text file (c:\test.txt) and then writes some text to the file:&lt;/p&gt; &lt;table class="ex" border="1" cellpadding="3" cellspacing="0" width="100%"&gt;   &lt;tbody&gt;&lt;tr valign="top"&gt;     &lt;td valign="top"&gt; &lt;% dim fs,fname       set fs=Server.CreateObject("Scripting.FileSystemObject")       set fname=fs.CreateTextFile("c:\test.txt",true)       fname.WriteLine("Hello World!")       fname.Close set fname=nothing set fs=nothing %&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The FileSystemObject object's properties and methods are described below:  &lt;h3&gt;Properties&lt;/h3&gt; &lt;table class="ex" border="1" cellpadding="3" cellspacing="0" width="100%"&gt;   &lt;tbody&gt;&lt;tr valign="top"&gt;     &lt;th align="left" valign="top" width="32%"&gt;Property&lt;/th&gt;     &lt;th align="left" valign="top" width="68%"&gt;Description&lt;/th&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;Drives&lt;/td&gt;     &lt;td valign="top"&gt;Returns a collection of all Drive objects on the computer&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;h3&gt;Methods&lt;/h3&gt;  &lt;table class="ex" border="1" cellpadding="3" cellspacing="0" width="100%"&gt;   &lt;tbody&gt;&lt;tr valign="top"&gt;     &lt;th align="left" valign="top" width="32%"&gt;Method&lt;/th&gt;     &lt;th align="left" valign="top" width="68%"&gt;Description&lt;/th&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;BuildPath&lt;/td&gt;     &lt;td valign="top"&gt;Appends a name to an existing path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;CopyFile&lt;/td&gt;     &lt;td valign="top"&gt;Copies one or more files from one location to another&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;CopyFolder&lt;/td&gt;     &lt;td valign="top"&gt;Copies one or more folders from one location to another&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;CreateFolder&lt;/td&gt;     &lt;td valign="top"&gt;Creates a new folder&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;CreateTextFile&lt;/td&gt;     &lt;td valign="top"&gt;Creates a text file and returns a TextStream object that       can be used to read from, or write to the file&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;DeleteFile&lt;/td&gt;     &lt;td valign="top"&gt;Deletes one or more specified files&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;DeleteFolder&lt;/td&gt;     &lt;td valign="top"&gt;Deletes one or more specified folders&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;DriveExists&lt;/td&gt;     &lt;td valign="top"&gt;Checks if a specified drive exists&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;FileExists&lt;/td&gt;     &lt;td valign="top"&gt;Checks if a specified file exists&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;FolderExists&lt;/td&gt;     &lt;td valign="top"&gt;Checks if a specified folder exists&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetAbsolutePathName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the complete path from the root of the drive for       the specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetBaseName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the base name of a specified file or folder&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetDrive&lt;/td&gt;     &lt;td valign="top"&gt;Returns a Drive object corresponding to the drive in a specified       path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;GetDriveName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the drive name of a specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;GetExtensionName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the file extension name for the last component in a       specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;GetFile&lt;/td&gt;     &lt;td valign="top"&gt;Returns a File object for a specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetFileName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the file name or folder name for the last component in a       specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetFolder&lt;/td&gt;     &lt;td valign="top"&gt;Returns a Folder object for a specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetParentFolderName&lt;/td&gt;     &lt;td valign="top"&gt;Returns the name of the parent folder of the last component in       a specified path&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;GetSpecialFolder&lt;/td&gt;     &lt;td valign="top"&gt;Returns the path to some of Windows' special folders&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;GetTempName&lt;/td&gt;     &lt;td valign="top"&gt;Returns a randomly generated temporary file or folder&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;MoveFile&lt;/td&gt;     &lt;td valign="top"&gt;Moves one or more files from one location to another&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;MoveFolder&lt;/td&gt;     &lt;td valign="top"&gt;Moves one or more folders from one location to another&lt;/td&gt;   &lt;/tr&gt;   &lt;tr valign="top"&gt;     &lt;td valign="top"&gt;OpenTextFile&lt;/td&gt;     &lt;td valign="top"&gt;Opens a file and returns a TextStream object that can be used to access the       file&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-7952884712639220620?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/7952884712639220620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=7952884712639220620&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7952884712639220620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/7952884712639220620'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/filesystemobject-object.html' title='The FileSystemObject Object'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-2411070784627841591</id><published>2007-08-15T01:58:00.000-07:00</published><updated>2007-08-15T04:58:39.025-07:00</updated><title type='text'>The Folder Object</title><content type='html'>The Folder object is used to return information about a specified folder.&lt;br /&gt;&lt;br /&gt;To work with the properties and methods of the Folder object, you will have to create an instance of the Folder object through the FileSystemObject object. First; create a FileSystemObject object and then instantiate the Folder object through the GetFolder method of the FileSystemObject object.&lt;br /&gt;&lt;br /&gt;The following code uses the GetFolder method of the FileSystemObject object to instantiate the Folder object and the DateCreated property to return the date when the specified folder was created:&lt;br /&gt;&lt;br /&gt;-------------------&lt;br /&gt;Dim fs,fo&lt;br /&gt;Set fs=Server.CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set fo=fs.GetFolder("c:\test")&lt;br /&gt;Response.Write("Folder created: " &amp; fo.DateCreated)&lt;br /&gt;set fo=nothing&lt;br /&gt;set fs=nothing&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;Folder created: 10/22/2001 10:01:19 AM&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-2411070784627841591?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/2411070784627841591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=2411070784627841591&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2411070784627841591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/2411070784627841591'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/folder-object.html' title='The Folder Object'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-5197613138832656236</id><published>2007-08-15T01:46:00.000-07:00</published><updated>2007-08-16T04:56:13.297-07:00</updated><title type='text'>Extended Document Property Information</title><content type='html'>This code will retrieve all Extended properties of any document &lt;br /&gt;like Title, Description, Comments, Author etc.&lt;br /&gt;Lists the summary information properties for a document named C:\Scripts\Test.doc.&lt;br /&gt;&lt;br /&gt;Set objPropertyReader = CreateObject("DSOleFile.PropertyReader")&lt;br /&gt;Set objDocument = objPropertyReader.GetDocumentProperties _&lt;br /&gt;    ("C:\Scripts\Test.doc")&lt;br /&gt;&lt;br /&gt;Wscript.Echo "Application name: " &amp; objDocument.AppName&lt;br /&gt;Wscript.Echo "Author: " &amp; objDocument.Author&lt;br /&gt;Wscript.Echo "Byte count: " &amp; objDocument.ByteCount&lt;br /&gt;Wscript.Echo "Category: " &amp; objDocument.Category&lt;br /&gt;Wscript.Echo "Character count: " &amp; objDocument.CharacterCount&lt;br /&gt;Wscript.Echo "Character count with spaces: " &amp; _&lt;br /&gt;    objDocument.CharacterCountWithSpaces&lt;br /&gt;Wscript.Echo "CLSID: " &amp; objDocument.CLSID&lt;br /&gt;Wscript.Echo "Comments: " &amp; objDocument.Comments&lt;br /&gt;Wscript.Echo "Company: " &amp; objDocument.Company&lt;br /&gt;Set colCustomProperties = objDocument.CustomProperties&lt;br /&gt;For Each strProperty in colCustomProperties&lt;br /&gt;    Wscript.Echo vbTab &amp; strProperty.Name &amp; ": " &amp; strProperty.Value&lt;br /&gt;Next&lt;br /&gt;Wscript.Echo "Date created: " &amp; objDocument.DateCreated&lt;br /&gt;Wscript.Echo "Date last printed: " &amp; objDocument.DateLastPrinted&lt;br /&gt;Wscript.Echo "Date last saved: " &amp; objDocument.DateLastSaved&lt;br /&gt;Wscript.Echo "Has macros: " &amp; objDocument.HasMacros&lt;br /&gt;Wscript.Echo "Hidden slides: " &amp; objDocument.HiddenSlides&lt;br /&gt;Wscript.Echo "Icon: " &amp; objDocument.Icon&lt;br /&gt;Wscript.Echo "Is read only: " &amp; objDocument.IsReadOnly&lt;br /&gt;Wscript.Echo "Keywords" &amp; objDocument.Keywords&lt;br /&gt;Wscript.Echo "Last edited by: " &amp; objDocument.LastEditedBy&lt;br /&gt;Wscript.Echo "Line count: " &amp; objDocument.LineCount&lt;br /&gt;Wscript.Echo "Location: " &amp; objDocument.Location&lt;br /&gt;Wscript.Echo "Manager: " &amp; objDocument.Manager&lt;br /&gt;Wscript.Echo "Multimedia clips: " &amp; objDocument.MultimediaClips&lt;br /&gt;Wscript.Echo "Name: " &amp; objDocument.Name&lt;br /&gt;Wscript.Echo "Page count: " &amp; objDocument.PageCount&lt;br /&gt;Wscript.Echo "Paragraph count: " &amp; objDocument.ParagraphCount&lt;br /&gt;Wscript.Echo "Presentation format: " &amp; objDocument.PresentationFormat&lt;br /&gt;Wscript.Echo "Presentation notes: " &amp; objDocument.PresentationNotes&lt;br /&gt;Wscript.Echo "ProgID: " &amp; objDocument.ProgID&lt;br /&gt;Wscript.Echo "Revision number: " &amp; objDocument.RevisionNumber&lt;br /&gt;Wscript.Echo "Slide count: " &amp; objDocument.SlideCount&lt;br /&gt;Wscript.Echo "Subject: " &amp; objDocument.Subject&lt;br /&gt;Wscript.Echo "Template: " &amp; objDocument.Template&lt;br /&gt;Wscript.Echo "Thumbnail: " &amp; objDocument.Thumbnail&lt;br /&gt;Wscript.Echo "Title: " &amp; objDocument.Title&lt;br /&gt;Wscript.Echo "Version: " &amp; objDocument.Version&lt;br /&gt;Wscript.Echo "Word count: " &amp; objDocument.WordCount&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Retrieving Extended File Properties&lt;br /&gt;&lt;br /&gt;Uses the Shell object to return extended properties for all the files in the folder C:\Scripts.&lt;br /&gt;&lt;br /&gt;Dim arrHeaders(34)&lt;br /&gt;&lt;br /&gt;Set objShell = CreateObject("Shell.Application")&lt;br /&gt;Set objFolder = objShell.Namespace("C:\Scripts")&lt;br /&gt;&lt;br /&gt;For i = 0 to 33&lt;br /&gt;    arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;For Each strFileName in objFolder.Items&lt;br /&gt;    For i = 0 to 33&lt;br /&gt;        Wscript.Echo i &amp; vbtab &amp; arrHeaders(i) _&lt;br /&gt;            &amp; ": " &amp; objFolder.GetDetailsOf(strFileName, i) &lt;br /&gt;    Next&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-5197613138832656236?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/5197613138832656236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=5197613138832656236&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/5197613138832656236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/5197613138832656236'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/extended-document-property-information.html' title='Extended Document Property Information'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930989844728359465.post-6560831576884108364</id><published>2007-08-15T01:07:00.000-07:00</published><updated>2007-08-15T01:50:45.791-07:00</updated><title type='text'>WebBrowser  Navigate Method</title><content type='html'>&lt;h3 id="tocHeadRef"&gt;How To Use WebBrowser HEADERS Param in Navigate Method Step-by-Step Example&lt;/h3&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;loadTOCNode(2, 'moreinformation');&lt;/script&gt;&lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr bgcolor="white"&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Create a new Standard .exe project in Microsoft Visual Basic 5.0. Form1 is created by default. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;From the &lt;b&gt;Project&lt;/b&gt; menu, click &lt;b&gt;Components&lt;/b&gt;. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt;Select the &lt;b&gt;Microsoft Internet Controls&lt;/b&gt; component. Click &lt;b&gt;OK&lt;/b&gt;. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt;Add the following controls to Form1:&lt;pre class="in_text"&gt;   Control           Name&lt;br /&gt;--------------    ---------&lt;br /&gt;Command Button    Command1&lt;br /&gt;WebBrowser        WebBrowser1&lt;br /&gt;  &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;5.&lt;/td&gt;&lt;td class="text"&gt;In Form1's code window, add the following code: &lt;code&gt;&lt;/code&gt;&lt;pre class="code"&gt;Option Explicit&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;&lt;br /&gt;WebBrowser1.Navigate  URL:= "http://www.microsoft.com" _&lt;br /&gt;  ,Headers:= "Authorization: Basic XXXXXX" &amp; chr$(13) &amp;amp; chr$(10)&lt;br /&gt;' Note: All headers must be terminated with a&lt;br /&gt;' carriage return linefeed pair.&lt;br /&gt;&lt;br /&gt;If WebBrowser1.Visible = False Then&lt;br /&gt;  WebBrowser1.Visible = True&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;  &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;6.&lt;/td&gt;&lt;td class="text"&gt;From the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Save Project1&lt;/b&gt;. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;7.&lt;/td&gt;&lt;td class="text"&gt;From the &lt;b&gt;Run&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;. Note that when you click &lt;b&gt;Command1&lt;/b&gt;, the WebBrowser appears and automatically loads the URL specified in the URL parameter of Navigate.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6930989844728359465-6560831576884108364?l=mcpvb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcpvb.blogspot.com/feeds/6560831576884108364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6930989844728359465&amp;postID=6560831576884108364&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6560831576884108364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930989844728359465/posts/default/6560831576884108364'/><link rel='alternate' type='text/html' href='http://mcpvb.blogspot.com/2007/08/how-to-use-webbrowser-headers-param-in.html' title='WebBrowser  Navigate Method'/><author><name>Raghu Bhandari</name><uri>http://www.blogger.com/profile/05747952519565825026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
