<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Linglom.com &#187; Windows</title> <atom:link href="http://www.linglom.com/category/windows/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com</link> <description>Source of IT knowledge</description> <lastBuildDate>Wed, 07 Dec 2011 14:03:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>How to Install Sample Databases (Northwind and Pubs) in SQL Server 2008 Express</title><link>http://www.linglom.com/2011/12/07/how-to-install-sample-databases-northwind-and-pubs-in-sql-server-2008-express/</link> <comments>http://www.linglom.com/2011/12/07/how-to-install-sample-databases-northwind-and-pubs-in-sql-server-2008-express/#comments</comments> <pubDate>Wed, 07 Dec 2011 14:03:35 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[MS SQL Server]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Sample Database]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1381</guid> <description><![CDATA[The databases, such Northwind and Pubs, are sample databases which are used for testing and developing on SQL Server. They are widely used in many sample source code and referenced by many tutorials. So if you are a developer or want to learn about SQL on SQL Server, these databases are needed to be installed [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/' rel='bookmark' title='Enable Remote Connection on SQL Server 2008 Express'>Enable Remote Connection on SQL Server 2008 Express</a> <small>Introduction Last time, I wrote an article show how to...</small></li><li><a
href='http://www.linglom.com/2009/08/14/restore-database-from-sql-server-2008-to-sql-server-2005-part-2-generate-sql-server-scripts-wizard/' rel='bookmark' title='Restore Database From SQL Server 2008 to SQL Server 2005, Part 2: Generate SQL Server Scripts Wizard'>Restore Database From SQL Server 2008 to SQL Server 2005, Part 2: Generate SQL Server Scripts Wizard</a> <small>Generate SQL Server Scripts Wizard On Part 1: Introduction, I...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>The databases, such <strong>Northwind</strong> and <strong>Pubs</strong>, are sample databases which are used for testing and developing on SQL Server. They are widely used in many sample source code and referenced by many tutorials. So if you are a developer or want to learn about SQL on SQL Server, these databases are needed to be installed on your development PC.</p><p><span
id="more-1381"></span></p><p>This article shows how to install Northwind and Pubs databases on Microsoft SQL Server 2008 Express.<br
/></p><h3>Step-by-step</h3><ol><li>Browse to <a
href="http://archive.msdn.microsoft.com/northwind/Release/ProjectReleases.aspx?ReleaseId=1401" target="_blank" rel=nofollow">SQL Server 2000 Sample Databases</a> and click on <strong>SQL2000.Sample.Databases.(Northwind,pubs).zip</strong> to download the Northwind and Pubs databases. Once you clicked the file, there will be a pop-up displays license of this file. Click <strong>I Agree</strong> to download the file.<br
/> <em><strong>Note:</strong></em> This file contains sample databases that can be used on SQL Server 2000/2005/2008.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_1.png" width="200" height="162" alt="Download SQL Server 2000 Sample Databases" title="Download SQL Server 2000 Sample Databases"  /></a></li><li>Extract the zipped file, you will see files as the figure below. There are two methods to install these sample databases on SQL Server. The first method, run query on the SQL Server using <strong>instnwnd.sql</strong> and <strong>instpubs.sql</strong> for Northwind and Pubs databases respectively. The second method, attach database on SQL Server using <strong>NORTHWND.LDF</strong> and <strong>NORTHWND.MDF</strong> for Northwind database and <strong>PUBS.MDF</strong> and <strong>PUBS_LOG.MDF</strong> for Pubs database. On this article, I will show how to install Northwind and Pubs databases using the second method.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_2.png" width="200" height="141" alt="Sample Database Files" title="Sample Database Files"  /></a></li><li>Open Microsoft SQL Server Management Studio and connect to your SQL Server.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_3.png" width="200" height="152" alt="Connect to SQL Server" title="Connect to SQL Server"  /></a></li><li>Once the connection has been established, right-click on <strong>Databases</strong> and select <strong>Attach</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_4.png" width="200" height="191" alt="Attach Databases" title="Attach Databases"  /></a></li><li>On <strong>Attach Databases</strong>, click <strong>Add</strong> in Databases to attach section.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_5.png" width="200" height="180" alt="Add Databases to Attach" title="Add Databases to Attach"  /></a></li><li>On <strong>Locate Database File</strong>, browse to the folder where you extracted the downloaded file in step 2. Select a database file that you want to attach. I select <strong>NORTHWND.MDF</strong> which refers to Northwind database and click <strong>OK</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_6.png" width="200" height="280" alt="Locate Database File" title="Locate Database File"  /></a></li><li>You will see detail of Northwind database. The <strong>NORTHWND.LDF</strong> is automatically added in the details on section below (&#8220;Northwind&#8221; database details).<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_7.png" width="200" height="180" alt="Select Northwind database to attach" title="Select Northwind database to attach"  /></a></li><li>Repeat step 5 and 6 for Pubs database by attach <strong>PUBS.MDF</strong> file if you want to attach more than one database at the time. After you finish selecting databases that you want to attach, click <strong>OK</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/8.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_8.png" width="200" height="180" alt="Select Pubs database to attach" title="Select Pubs database to attach"  /></a></li><li>If there is no error, you will see the sample databases (Northwind and Pubs) list on the SQL Server as the figure below. Now you can use these sample databases as you want.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/9.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/Install-Sample-Databases/_9.png" width="200" height="169" alt="Attached Sample Database" title="Attached Sample Database"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/' rel='bookmark' title='Enable Remote Connection on SQL Server 2008 Express'>Enable Remote Connection on SQL Server 2008 Express</a> <small>Introduction Last time, I wrote an article show how to...</small></li><li><a
href='http://www.linglom.com/2009/08/14/restore-database-from-sql-server-2008-to-sql-server-2005-part-2-generate-sql-server-scripts-wizard/' rel='bookmark' title='Restore Database From SQL Server 2008 to SQL Server 2005, Part 2: Generate SQL Server Scripts Wizard'>Restore Database From SQL Server 2008 to SQL Server 2005, Part 2: Generate SQL Server Scripts Wizard</a> <small>Generate SQL Server Scripts Wizard On Part 1: Introduction, I...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2011/12/07/how-to-install-sample-databases-northwind-and-pubs-in-sql-server-2008-express/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[Solved] Error 29506 when installing Microsoft SQL Server Manament Studio Express on Windows Vista or Windows Seven</title><link>http://www.linglom.com/2011/12/03/solved-error-29506-when-installing-microsoft-sql-server-manament-studio-express-on-windows-vista-or-windows-seven/</link> <comments>http://www.linglom.com/2011/12/03/solved-error-29506-when-installing-microsoft-sql-server-manament-studio-express-on-windows-vista-or-windows-seven/#comments</comments> <pubDate>Sat, 03 Dec 2011 14:54:47 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[MS SQL Server]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[SQL Server 2005]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1368</guid> <description><![CDATA[Note: This article is applied on installing Microsoft SQL Server Management Studio Express which is used for manage Microsoft SQL Server 2005 Express only. When you are installing Microsoft SQL Server Management Studio Express on Windows Vista or Windows 7, you may receive this error message: The installer has encountered an unexpected error installing this [...]
No related posts.]]></description> <content:encoded><![CDATA[<p><em><strong>Note: </strong></em>This article is applied on installing Microsoft SQL Server Management Studio Express which is used for manage Microsoft SQL Server 2005 Express only.</p><p><span
id="more-1368"></span></p><p>When you are installing <a
href="http://www.microsoft.com/download/en/details.aspx?id=8961" target="_blank" rel="nofollow">Microsoft SQL Server Management Studio Express</a> on Windows Vista or Windows 7, you may receive this error message:</p><p><em><strong>The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 29506.</strong></em><br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_1.png" width="200" height="152" alt="Error 29506" title="Error 29506"  /></a></p><p>This error message relates with permission issue (UAC) on Windows Vista and Windows 7. To solve this problem, you have to re-run the installer again using elevated command prompt by run the command prompt as administrator and execute the installer in there. If you are using 64-bit Windows, you should use the command prompt at C:\Windows\SysWOW64\cmd.exe instead. Otherwise, you can use the command prompt at C:\Windows\System32\cmd.exe. You will see the step-by-step guide to use elevated command prompt to execute the installer file on the section below.</p><p>The other solution, you can disable UAC on Windows but I don&#8217;t recommend it since it will lower your security system.</p><p></p><h3>Step-by-step</h3><ol><li>Run elevated command prompt by right-click on Command Prompt in <strong>Start</strong> -> <strong>All Programs</strong> -> <strong>Accessories</strong> -> <strong>Command Prompt</strong> and select <strong>Run as administrator</strong>.<br
/> <em><strong>Note:</strong></em> This step is for 32-bit Windows. If you are using 64-bit Windows, see the next step.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_2.png" width="200" height="167" alt="Open Command Prompt as Administrator" title="Open Command Prompt as Administrator"  /></a></li><li>If you are using 64-bit Windows, you have to run the command prompt in C:\Windows\SysWOW64. Right-click on cmd.exe and select <strong>Run as administrator</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_3.png" width="200" height="150" alt="Open Command Prompt as Administrator For 64-bit Windows" title="Open Command Prompt as Administrator For 64-bit Windows"  /></a></li><li>On <strong>User Account Control</strong>, click <strong>Yes</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_4.png" width="200" height="106" alt="User Account Control" title="User Account Control"  /></a></li><li>On Command Prompt (both 32-bit and 64-bit Windows), change path to directory where the installer file is and execute the file. By default, the file name for 32-bit version is <strong>SQLServer2005_SSMSEE.msi</strong> and 64-bit version is <strong>SQLServer2005_SSMSEE_x64.msi</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_5.png" width="200" height="101" alt="Execute the installer file" title="Execute the installer file"  /></a></li><li>On Setup Wizard, follow the instruction as usual. There won&#8217;t be the error message this time.<br
/> <a
href="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/SQL-Server/SQL-Server-Management-Studio-Express/Error-29506/_6.png" width="200" height="152" alt="Microsoft SQL Server Management Studio Express Setup" title="Microsoft SQL Server Management Studio Express Setup"  /></a></li></ol><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2011/12/03/solved-error-29506-when-installing-microsoft-sql-server-manament-studio-express-on-windows-vista-or-windows-seven/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Enable cURL on XAMPP</title><link>http://www.linglom.com/2011/09/01/enable-curl-on-xampp/</link> <comments>http://www.linglom.com/2011/09/01/enable-curl-on-xampp/#comments</comments> <pubDate>Thu, 01 Sep 2011 08:53:15 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[cURL]]></category> <category><![CDATA[XAMPP]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1352</guid> <description><![CDATA[cURL is client-side URL transfer library which allows you to connect and communicate to many different types of servers with many different types of protocols. It supports http, https, ftp, gopher, telnet, dict, file, and ldap protocols. This article shows you how to enable cURL on XAMPP on Windows 7. Step-by-step Locate php.ini in xampp [...]
No related posts.]]></description> <content:encoded><![CDATA[<p>cURL is client-side URL transfer library which allows you to connect and communicate to many different types of servers with many different types of protocols. It supports http, https, ftp, gopher, telnet, dict, file, and ldap protocols.</p><p><span
id="more-1352"></span></p><p>This article shows you how to enable cURL on XAMPP on Windows 7.</p><p></p><h3>Step-by-step</h3><ol><li>Locate php.ini in xampp directory. By default, it locates in <strong>&#8220;xampp/php/php.ini&#8221;</strong>. Then, open the file with any text editor.<br
/> <a
href="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/_1.png" width="200" height="150" alt="Locate PHP.INI" title="Locate PHP.INI"  /></a></li><li>Uncomment the line below by remove the semi-colon at beginning of the line and save the file.<div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">;extension=php_curl.dll</pre></div></div><p>to</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">extension=php_curl.dll</pre></div></div><p><a
href="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/_2.png" width="200" height="182" alt="Uncomment php_curl.dll" title="Uncomment php_curl.dll"  /></a></li><li>Next, restart apache service. You can do this through Windows services or using XAMPP Control Panel. Open <strong>XAMPP Control Panel</strong>, click on <strong>Stop</strong> button of the Apache service. Once it stops, click <strong>Start</strong> button.<br
/> <a
href="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/_3.png" width="200" height="160" alt="Restart Apache service" title="Restart Apache service"  /></a></li><li>Now cURL is enabled on XAMPP, you can test by create a PHP file with the code below and save to htdocs folder.<pre class="brush: php; title: ; notranslate">
 &lt;?php
  phpinfo();
?&gt;
</pre><p><a
href="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/_4.png" width="200" height="150" alt="phpinfo()" title="phpinfo()"  /></a></li><li>Open the browser and navigate to http://localhost/phpinfo.php. Scroll down to find curl section, you will see that it is already enabled. If you can&#8217;t find curl section, it means that cURL isn&#8217;t enable on the server.<br
/> <a
href="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Enable-cURL-on-XAMPP/_5.png" width="200" height="144" alt="cURL is enabled" title="cURL is enabled"  /></a></li></ol><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2011/09/01/enable-curl-on-xampp/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to setup Apache web server using XAMPP on Windows</title><link>http://www.linglom.com/2011/08/16/how-to-setup-apache-web-server-using-xampp-on-windows/</link> <comments>http://www.linglom.com/2011/08/16/how-to-setup-apache-web-server-using-xampp-on-windows/#comments</comments> <pubDate>Tue, 16 Aug 2011 04:43:52 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[XAMPP]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1336</guid> <description><![CDATA[If you are a PHP/MySQL developer or administrator who need to test configuration of Apache web server, you may want to setup local Apache web server to test your developed script or configuration before deploy to production environment. You can manually install and configure Apache, PHP and MySQL on your local computer. But it takes [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2007/02/01/how-to-set-up-apache-web-server-using-appserv/' rel='bookmark' title='How to set up Apache web server using AppServ'>How to set up Apache web server using AppServ</a> <small>What is web server? A web server is service that...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>If you are a PHP/MySQL developer or administrator who need to test configuration of Apache web server, you may want to setup local Apache web server to test your developed script or configuration before deploy to production environment. You can manually install and configure Apache, PHP and MySQL on your local computer. But it takes time and requires some skill to configure these applications. If you are looking for an easier solution, you may be interested in this article.</p><p><span
id="more-1336"></span></p><p>Few years ago, I wrote an article about how to setup Apache web server using AppServ. Now there are many software similar to AppServ so I decide to write a new fresh one. But instead of using the same software as the previous article, I will use <strong>XAMPP</strong> this time. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. At the moment there are four XAMPP distributions: Windows, Linux, Mac OS and Solaris. See <a
href="http://www.apachefriends.org/en/xampp.html" target="_blank" rel="nofollow">XAMPP</a> for more information.</p><p>XAMPP is not meant for production use but only for developers in a development environment. XAMPP is configured is to be as open as possible and to allow the web developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.<br
/> <em><strong>Reference:</strong></em> <a
href="http://www.apachefriends.org/en/xampp-windows.html#1221" target="_blank" rel="nofollow">XAMPP security console</a></p><p></p><p>This article will show you how to setup Apache web server with PHP/MySQL using XAMPP on Windows 7 (x64). The current version of XAMPP is 1.7.4. It comes with PHP 5.3.5 so if you don&#8217;t plan to use this PHP version, you should download the older version of XAMPP instead.</p><h3>Step-by-step</h3><ol><li>Download XAMPP for Windows. Browse to <a
href="http://www.apachefriends.org/en/xampp.html" target="_blank" rel="nofollow">www.apachefriends.org/en/xampp.html</a> and click <strong>XAMPP for Windows</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_1.png" width="200" height="142" alt="XAMPP for Windows" title="XAMPP for Windows"  /></a></li><li>Scroll down to Download section, there are 3 formats which you can choose to download. In this example, I select <strong>ZIP</strong> format.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_2.png" width="200" height="144" alt="Download XAMPP" title="Download XAMPP"  /></a></li><li>Unzip the file into the folder of your choice. If you extract XAMPP in a top level folder like &#8220;C:\&#8221; or &#8220;D:\&#8221;, you can skip to step 5. Otherwise, you have to run &#8220;setup_xampp.bat&#8221; in \xampp folder. In this example, I extract to C:\ so I can skip to step 5.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_3.png" width="200" height="150" alt="Unzip XAMPP" title="Unzip XAMPP"  /></a></li><li>Here is the screenshot of the execution of file <strong>setup_xampp.bat</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_4.png" width="200" height="101" alt="setup_xampp.bat" title="setup_xampp.bat"  /></a></li><li>Open XAMPP Control Panel by right-click on <strong>xampp-control.exe</strong> and select <strong>Run as administrator</strong>.<br
/> <strong><em>Note:</em></strong> If you&#8217;re using Windows XP, you just double-click on the file.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_5.png" width="200" height="150" alt="Open XAMPP Control Panel" title="Open XAMPP Control Panel"  /></a></li><li>On <strong>XAMPP Control Panel Application</strong>, select <strong>Svc</strong> checkbox of Apache and click <strong>OK</strong>. This will install Apache as a service on this computer.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_6.png" width="200" height="160" alt="Install Apache as service" title="Install Apache as service"  /></a></li><li>Click <strong>Start</strong> to start Apache web server.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_7.png" width="200" height="160" alt="Start Apache" title="Start Apache"  /></a></li><li>Repeat step 6-7 on MySQL. Now Apache and MySQL are installed as Windows services and already started.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/8.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_8.png" width="200" height="160" alt="Apache and MySQL services started" title="Apache and MySQL services started"  /></a></li><li>You can check if the services are really installed on the computer by click <strong>SCM</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/9.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_9.png" width="200" height="160" alt="Open Windows Services" title="Open Windows Services"  /></a></li><li>On <strong>Services</strong>, you will see Apache and MySQL services are started and startup type are set to <strong>Automatic</strong> which means that services will be started automatically when the computer starts.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/10.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_10.png" width="200" height="152" alt="Windows Services" title="Windows Services"  /></a></li><li>Now it&#8217;s time to test, browse to &#8220;http://localhost&#8221; or &#8220;http://127.0.0.1&#8243;. You will see the screen as below. This is XAMPP&#8217;s splash screen, select <strong>English</strong> language.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/11.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_11.png" width="200" height="144" alt="XAMPP Splash Screen" title="XAMPP Splash Screen"  /></a></li><li>Here is the XAMPP&#8217;s main page. You can view other pages using navigation menu on the left side. For example, XAMPP&#8217;s status to see which components are running, security page to view current security configuration of the XAMPP installation, etc.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/12.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_12.png" width="200" height="144" alt="XAMPP's Main Page" title="XAMPP's Main Page"  /></a></li><li>The main directory for all WWW documents is \xampp\htdocs. If you put a file &#8220;test.html&#8221; in this directory, you can access it with the URI &#8220;http://localhost/test.html&#8221;.<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/13.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_13.png" width="200" height="150" alt="" title=""  /></a></li><li>You can manage MySQL using phpMyAdmin by browse to &#8220;http://localhost/phpmyadmin&#8221; or you can select phpMyAdmin link on the XAMPP&#8217;s main page (in Tools section).<br
/> <em><strong>Note:</strong></em> By default, the root&#8217;s password is empty (blank password).<br
/> <a
href="http://www.linglom.com/images/Windows/Setup-XAMPP/14.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Setup-XAMPP/_14.png" width="200" height="144" alt="" title=""  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2007/02/01/how-to-set-up-apache-web-server-using-appserv/' rel='bookmark' title='How to set up Apache web server using AppServ'>How to set up Apache web server using AppServ</a> <small>What is web server? A web server is service that...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2011/08/16/how-to-setup-apache-web-server-using-xampp-on-windows/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to Install Windows 7 from USB Flash Drive</title><link>http://www.linglom.com/2011/03/21/how-to-install-windows-7-from-usb-flash-drive/</link> <comments>http://www.linglom.com/2011/03/21/how-to-install-windows-7-from-usb-flash-drive/#comments</comments> <pubDate>Mon, 21 Mar 2011 06:40:27 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[Windows]]></category> <category><![CDATA[USB]]></category> <category><![CDATA[Windows 7]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1311</guid> <description><![CDATA[On this article, you will see how to install Windows 7 from an USB Flash Drive. The benefit of using USB Flash Drive to install Windows 7 are: Faster than using DVD. It takes less time to install Windows 7. An USB Flash Drive is smaller than DVD. Hence, easier to carry and maintain. Can [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2011/03/15/how-to-boot-from-usb-flash-drive-on-vmware-workstation/' rel='bookmark' title='How to Boot from USB Flash Drive on VMWare Workstation'>How to Boot from USB Flash Drive on VMWare Workstation</a> <small>If you are using VMWare Workstation, you will notice that...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>On this article, you will see how to install Windows 7 from an USB Flash Drive. The benefit of using USB Flash Drive to install Windows 7 are:<span
id="more-1311"></span></p><ol><li>Faster than using DVD. It takes less time to install Windows 7.</li><li>An USB Flash Drive is smaller than DVD. Hence, easier to carry and maintain.</li><li>Can be installed on computer or laptop that doesn&#8217;t has DVD-ROM but has an USB port.</li></ol><p>To install Windows 7 from an USB Flash Drive, you need a Windows 7 installation DVD or image file (.iso). Next, make a bootable USB Flash Drive by using the Windows 7 image file and <strong>UNetbootin</strong>, which is a free software that allows you to create bootable Live USB drives. Then, you will get a bootable USB Flash Drive which you can use to install Windows 7.</p><h3>Requirement</h3><ul><li>Microsoft Windows 7 installation DVD disc or image file (.iso)</li><li>UNetbootin</li><li>An USB Flash Drive.</li><li>The computer or laptop which will be installed Windows 7 must support boot from USB storage device. Most computer and laptop in these days support this feature already.</li></ul><p><em><strong>Note:</strong></em> This article demonstrates only for Windows 7 but you can apply to other operating system, such as Windows XP, Windows Vista, Linux, etc.</p><p></p><h3>Step-by-step</h3><ol><li>Prepare an image file. You can use free software, such as <a
href="http://www.imgburn.com/" target="_blank">ImgBurn</a>, to create an ISO image file from Windows 7 installation DVD. You can skip this step if you already have Windows as an image file (.iso).<ul><li>Insert Windows 7 installation DVD in your DVD-ROM Drive.</li><li>Run ImgBurn and click <strong>Create image file from disc</strong>.</li><li>Select destination for image file by click on <strong>File</strong> -> <strong>Browse for a destination file</strong> and click <strong>Save</strong>.</li><li>Start create image file by click <strong>File</strong> -> <strong>Read</strong> or click on the Read&#8217;s icon.</li></ul><p><a
href="http://www.linglom.com/images/Windows/USB-Installation/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_2.png" width="200" height="137" alt="Create ISO Image File Using ImgBurn" title="Create ISO Image File Using ImgBurn"  /></a></li><li>Download <a
href="http://unetbootin.sourceforge.net/" target="_blank">UNetbootin</a> from http://unetbootin.sourceforge.net. You can run it after download, no installation need.<br
/> <a
href="http://www.linglom.com/images/Windows/USB-Installation/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_3.png" width="200" height="130" alt="Download UNetbootin" title="Download UNetbootin"  /></a></li><li>Insert your USB Flash Drive and run UNetbootin.<br
/> <a
href="http://www.linglom.com/images/Windows/USB-Installation/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_4.png" width="200" height="147" alt="Run UNetbootin" title="Run UNetbootin"  /></a></li><li>Select <strong>Diskimage (ISO)</strong> and browse to your Windows 7 image file. On the bottom, select drive of the USB Flash Drive as destination. On this example, the target drive is &#8220;<em>H:\</em>&#8220;. Click <strong>OK</strong> to start create a bootable USB Flash Drive.<br
/> <a
href="http://www.linglom.com/images/Windows/USB-Installation/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_5.png" width="200" height="147" alt="Select Image File on UNetbootin" title="Select Image File on UNetbootin"  /></a></li><li>The process could takes times a little while.<br
/> <a
href="http://www.linglom.com/images/Windows/USB-Installation/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_6.png" width="200" height="147" alt="Creating a Bootable USB Flash Drive" title="Creating a Bootable USB Flash Drive"  /></a></li><li>When the process finishes, you have an option to reboot your system or exit the program. Now you can use this USB Flash Drive to boot on any computer or laptop.<br
/> <em><strong>Note:</strong></em> You may need to change boot order in BIOS on a computer or laptop, which you want to boot using the USB Flash Drive, to boot from USB storage device first.<br
/> <a
href="http://www.linglom.com/images/Windows/USB-Installation/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/USB-Installation/_7.png" width="200" height="147" alt="Finishes Create a Bootable USB Flash Drive" title="Finishes Create a Bootable USB Flash Drive"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2011/03/15/how-to-boot-from-usb-flash-drive-on-vmware-workstation/' rel='bookmark' title='How to Boot from USB Flash Drive on VMWare Workstation'>How to Boot from USB Flash Drive on VMWare Workstation</a> <small>If you are using VMWare Workstation, you will notice that...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2011/03/21/how-to-install-windows-7-from-usb-flash-drive/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Accessing SQL Server on ASP.NET Web Application using ADO.NET</title><link>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/</link> <comments>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/#comments</comments> <pubDate>Wed, 14 Apr 2010 06:28:21 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[ASP.NET]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[ADO.NET]]></category> <category><![CDATA[SQL Server]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1089</guid> <description><![CDATA[ADO.NET is a set of components that can be used to access data and data services. The objects of ADO.NET that will be used in this post are: Connection: Provides a connection used to communicate with the data source. DataAdapter: A bridge used to transfer data between a Data source and a DataSet object. DataSet: [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>ADO.NET is a set of components that can be used to access data and data services. The objects of ADO.NET that will be used in this post are:<span
id="more-1089"></span></p><ul><li><strong>Connection</strong>: Provides a connection used to communicate with the data source.</li><li><strong>DataAdapter</strong>: A bridge used to transfer data between a Data source and a DataSet object.</li><li><strong>DataSet</strong>: Stores query result from DataAdapter.</li></ul><p></p><p>On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object. I have provided both VB.NET and C# programming languages.</p><h3>Step-by-step</h3><ol><li>Create a connection string in web.config. I decide to put the connection string in web.config so that I can re-use the connection string in other web form.<div
class="wp_syntax"><div
class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>connectionstrings<span style="color: #006600; font-weight: bold;">&gt;</span>
		<span style="color: #006600; font-weight: bold;">&lt;</span>add name<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Northwind&quot;</span>
       connectionString<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Data Source=BKKSQL001\INSTANCE01;
       Initial Catalog=Northwind;
       Integrated Security=True&quot;</span>
      providerName<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;System.Data.SqlClient&quot;</span><span style="color: #006600; font-weight: bold;">/&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>connectionstrings<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div><p><strong>Attributes explanation:</strong></p><ul><li><strong>name</strong>: A connection string name.</li><li><strong>connectionString</strong>: A connection string which is used to connect to a database. On this example, it connects to Northwind database on BKKSQL001\INSTANCE01.</li><li><strong>providerName</strong>: A provider name that is used.</li></ul><p><a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/_1.png" width="200" height="150" alt="A Connection String" title="A Connection String"  /></a></li><li>On a Web Form, imports some namespaces which are required for working with SQL Server. System.Web.Configuration is use to read values from web.config.<div
class="wp_syntax"><div
class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">'Visual Basic</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Data</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Data</span>.<span style="color: #0000FF;">SqlClient</span>
<span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Configuration</span></pre></div></div><div
class="wp_syntax"><div
class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">//C#</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data.SqlClient</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.Configuration</span><span style="color: #008000;">;</span></pre></div></div></li><li>Use a GridView object to display the query result. Set the name of GridView to &#8220;<strong>gridView1</strong>&#8220;. Copy and paste the code below to <strong>Page_Load</strong> method.<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td
class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">'Visual Basic</span>
Protected <span style="color: #0600FF;">Sub</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> <span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">Load</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> connStr <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> <span style="color: #008000;">=</span> WebConfigurationManager.<span style="color: #0000FF;">ConnectionStrings</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Northwind&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ConnectionString</span>
        <span style="color: #0600FF;">Dim</span> conn <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> SqlConnection<span style="color: #000000;">&#40;</span>connStr<span style="color: #000000;">&#41;</span>
        conn.<span style="color: #0600FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> sqlProducts <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;SELECT ProductID, ProductName, UnitPrice FROM Products&quot;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> da <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> SqlDataAdapter<span style="color: #000000;">&#40;</span>sqlProducts, conn<span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> ds <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> DataSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        da.<span style="color: #0000FF;">Fill</span><span style="color: #000000;">&#40;</span>ds, <span style="color: #808080;">&quot;Products&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        gridView1.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> ds.<span style="color: #0000FF;">Tables</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Products&quot;</span><span style="color: #000000;">&#41;</span>
        gridView1.<span style="color: #0000FF;">Databind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></td></tr></table></div><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td
class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">//C#</span>
<span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #6666cc; font-weight: bold;">void</span> Page_Load<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, EventArgs e<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        <span style="color: #6666cc; font-weight: bold;">string</span> connStr <span style="color: #008000;">=</span> WebConfigurationManager<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectionStrings</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Northwind&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectionString</span><span style="color: #008000;">;</span>
        SqlConnection conn <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SqlConnection<span style="color: #008000;">&#40;</span>connStr<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        conn<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #6666cc; font-weight: bold;">string</span> sqlProducts <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;SELECT ProductID, ProductName, UnitPrice FROM Products&quot;</span><span style="color: #008000;">;</span>
&nbsp;
        SqlDataAdapter da <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SqlDataAdapter<span style="color: #008000;">&#40;</span>sqlProducts, conn<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        DataSet ds <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> DataSet<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        da<span style="color: #008000;">.</span><span style="color: #0000FF;">Fill</span><span style="color: #008000;">&#40;</span>ds, <span style="color: #666666;">&quot;Products&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        gridView1<span style="color: #008000;">.</span><span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> ds<span style="color: #008000;">.</span><span style="color: #0000FF;">Tables</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;Products&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
        gridView1<span style="color: #008000;">.</span><span style="color: #0000FF;">DataBind</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span></pre></td></tr></table></div><p><strong>Code Explanation:</strong></p><ul><li>Line 4-6: Get a connection string value from web.config. Then, open a connection using the connection string to a SQL Server.</li><li>Line 8: Create a variable &#8220;<strong>sqlProducts</strong>&#8221; which stores SQL query from Products table.</li><li>Line 10-12: Create a SqlDataAdapter object &#8220;<strong>da</strong>&#8221; to execute the query. Then, create a DataSet object &#8220;<strong>ds</strong>&#8221; to hold the result from object &#8220;<strong>da</strong>&#8221; and set name to &#8220;<strong>Products</strong>&#8220;.</li><li>Line 14-15: Display data from object &#8220;<strong>ds</strong>&#8221; on a GridView object &#8220;<strong>gridView1</strong>&#8220;.</li></ul></li><li>Run the project. You will see the result as figure below.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/ADO.NET/_2.png" width="200" height="247" alt="Northwind's Products table" title="Northwind's Products table"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</title><link>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/</link> <comments>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/#comments</comments> <pubDate>Fri, 02 Apr 2010 03:32:54 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[ASP.NET]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[SQL Server]]></category> <category><![CDATA[SqlDataSource]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1095</guid> <description><![CDATA[Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data From part 1: SELECT Data, you see how to query data from SQL Server 2005 to display on a GridView object using SqlDataSource web control. But the data is read-only, you cannot modify any data on a GridView. So now [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a> <small>ADO.NET is a set of components that can be used...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</h3><p><span
id="more-1095"></span></p><p>From <a
href="http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/">part 1: SELECT Data</a>, you see how to query data from SQL Server 2005 to display on a GridView object using <strong>SqlDataSource</strong> web control. But the data is read-only, you cannot modify any data on a GridView. So now you will see how to modify data on the GridView which will update back on the database.</p><p></p><h3>Step-by-step</h3><p><em><strong>Note:</strong></em> This example is continue from part 1: SELECT Data.</p><ol><li>On SqlDataSource1, click on <strong>Configure Data Source</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_1.png" width="200" height="129" alt="Configure Data Source" title="Configure Data Source"  /></a></li><li>On <strong>Choose Your Data Connection</strong>, click <strong>Next</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_2.png" width="200" height="155" alt="Choose Your Data Connection" title="Choose Your Data Connection"  /></a></li><li>On <strong>Configure Select Statement</strong>, change the option from <strong>Specify columns from a table or view</strong> to <strong>Specify a custom SQL statement or stored procedure</strong>. Click <strong>Next</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_3.png" width="200" height="155" alt="Configure Select Statement" title="Configure Select Statement"  /></a></li><li>On <strong>Define Custom Statements or Stored Procedures</strong>, you see 4 tabs which are SELECT, UPDATE, INSERT and DELETE. Here you can define custom SQL statements for each SQL operations. On <strong>SELECT</strong> tab, enter the SQL statement as below:<div
class="wp_syntax"><div
class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">&#91;</span>ProductID<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#91;</span>ProductName<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#91;</span>UnitPrice<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#91;</span>Products<span style="color: #66cc66;">&#93;</span></pre></div></div><p><a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_4.png" width="200" height="155" alt="Define Custom Statements or Stored Procedures" title="Define Custom Statements or Stored Procedures"  /></a></li><li>Click on <strong>UPDATE</strong> tab, enter the SQL statement below and click <strong>Next</strong>.<div
class="wp_syntax"><div
class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> Products <span style="color: #993333; font-weight: bold;">SET</span> ProductName <span style="color: #66cc66;">=</span> @ProductName<span style="color: #66cc66;">,</span> UnitPrice <span style="color: #66cc66;">=</span> @UnitPrice
<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #66cc66;">&#91;</span>ProductID<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">=</span> @ProductID</pre></div></div><p><a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_5.png" width="200" height="155" alt="Update SQL Query" title="Update SQL Query"  /></a></li><li>On <strong>Test Query</strong>, Click <strong>Finish</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_6.png" width="200" height="155" alt="Test Query" title="Test Query"  /></a></li><li>On <strong>GridView1</strong>, click <strong>Edit Columns</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_7.png" width="200" height="129" alt="Edit Columns" title="Edit Columns"  /></a></li><li>On <strong>Fields</strong>, select <strong>Command Fields</strong> -> <strong>Edit, Update, Cancel</strong> on <strong>Available fields</strong> and click <strong>Add</strong>. Then, move the field <strong>Edit, Update, Cancel</strong> to the top by click on up arrow button. Next, click <strong>OK</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/8.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_8.png" width="200" height="163" alt="Add Fields on Grid View Web Control" title="Add Fields on Grid View Web Control"  /></a></li><li>On <strong>GridView1</strong>, check <strong>Enable Editing</strong> to allow edit data on the Grid View.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/9.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_9.png" width="200" height="129" alt="Enable Editing" title="Enable Editing"  /></a></li><li>Build and run the project. You see the <strong>Edit</strong> column in front of each row. Click <strong>Edit</strong> to edit the row.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/10.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_10.png" width="200" height="273" alt="Query Result" title="Query Result"  /></a></li><li>You can modify the value of product name and unit price of the row which also update back on the database, too.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/11.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-2/_11.png" width="200" height="195" alt="Edit a Row" title="Edit a Row"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a> <small>ADO.NET is a set of components that can be used...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</title><link>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/</link> <comments>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/#comments</comments> <pubDate>Fri, 26 Mar 2010 04:40:26 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[ASP.NET]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[SqlDataSource]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=1092</guid> <description><![CDATA[Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object using SqlDataSource web control so you don&#8217;t have to write any code! [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a> <small>ADO.NET is a set of components that can be used...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol>]]></description> <content:encoded><![CDATA[<h3>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 1: SELECT Data</h3><p><span
id="more-1092"></span></p><p>On this post, you will see how to develop an ASP.NET web application that query data from SQL Server 2005 and display the result on a GridView object using <strong>SqlDataSource</strong> web control so you don&#8217;t have to write any code!</p><p></p><h3>Step-by-step-</h3><ol><li>Drag a <strong>SqlDataSource</strong> object from Toolbox to a Web Form.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_1.png" width="200" height="233" alt="SqlDataSource" title="SqlDataSource"  /></a></li><li>On <strong>SqlDataSource1</strong> object, click <strong>Configure Data Source</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_2.png" width="200" height="129" alt="Configure Data Source" title="Configure Data Source"  /></a></li><li>On <strong>Choose Your Data Connection</strong>, click <strong>New Connection</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_3.png" width="200" height="155" alt="Create a New Connection" title="Create a New Connection"  /></a></li><li>On <strong>Add Connection</strong>, select <strong>Data Source</strong> as <strong>Microsoft SQL Server (SqlClient)</strong>. Then, type the Server name of the SQL Server and select a database. On this example, the server is <strong>BKKSQL001\INSTANCE01</strong> and <strong>Northwind</strong> is the database.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_4.png" width="200" height="301" alt="Add Connection" title="Add Connection"  /></a></li><li>On <strong>Save the Connection String to the Application Configuration File</strong>, click <strong>Next</strong> to continue.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_5.png" width="200" height="155" alt="Save the Connection String" title="Save the Connection String"  /></a></li><li>On <strong>Configure the Select Statement</strong>, select <strong>Specify columns from table or view</strong> and select <strong>Products</strong> table. Then, check <strong>ProductID</strong>, <strong>ProductName</strong> and <strong>UnitPrice</strong> columns. Click <strong>Next</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_6.png" width="200" height="155" alt="Configure the Select Statement" title="Configure the Select Statement"  /></a></li><li>On <strong>Test Query</strong>, you can click on <strong>Test Query</strong> button to verify the query result. Then, click <strong>Finish</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_7.png" width="200" height="155" alt="Test Query" title="Test Query"  /></a></li><li>Drag a GridView object from Toolbox to the Web Form. Then, choose the Data Source to the one that you have just created.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/8.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_8.png" width="200" height="129" alt="Set Data Source for GridView Object" title="Set Data Source for GridView Object"  /></a></li><li>Build and run the project. You will see the result as the figure below.<br
/> <a
href="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/9.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Programming/ASP.NET/Access-SQLServer/SqlDataSource/Part-1/_9.png" width="200" height="247" alt="Query Result on Web Page" title="Query Result on Web Page"  /></a></li></ol><p>Related posts:<ol><li><a
href='http://www.linglom.com/2010/04/02/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-2-update-data/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data'>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web Control, Part 2: UPDATE Data</a> <small>Accessing SQL Server on ASP.NET Web Application using SqlDataSource Web...</small></li><li><a
href='http://www.linglom.com/2010/04/14/accessing-sql-server-on-asp-net-web-application-using-ado-net/' rel='bookmark' title='Accessing SQL Server on ASP.NET Web Application using ADO.NET'>Accessing SQL Server on ASP.NET Web Application using ADO.NET</a> <small>ADO.NET is a set of components that can be used...</small></li><li><a
href='http://www.linglom.com/2008/08/26/create-dynamic-rss-feed-from-ms-sql-server-using-aspnet-part-i-vbnet/' rel='bookmark' title='Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET'>Create Dynamic RSS Feed from MS SQL Server using ASP.NET, Part I: VB.NET</a> <small>Introduction Before I started, let&#8217;s get to know what RSS...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2010/03/26/accessing-sql-server-on-asp-net-web-application-using-sqldatasource-web-control-part-1-select-data/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</title><link>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/</link> <comments>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/#comments</comments> <pubDate>Wed, 24 Feb 2010 02:28:32 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[ISA]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Getting Started]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=977</guid> <description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. Block Windows Live Messenger From Part 11: HTTP Filtering, you learn about HTTP filtering concept. Now let&#8217;s apply it with a [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a> <small>Have you ever need to block users using MSN or...</small></li><li><a
href='http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering'>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</a> <small>This article is one of the series of Getting started...</small></li><li><a
href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a> <small>Introduction Microsoft Internet Security and Acceleration Server (ISA Server) is...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a
href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p><p><span
id="more-977"></span></p><h3>Block Windows Live Messenger</h3><p>From <a
href="http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/">Part 11: HTTP Filtering</a>, you learn about HTTP filtering concept. Now let&#8217;s apply it with a real world example, <strong>Windows Live Messenger</strong>. On this post, I show you how to block Windows Live Messenger on ISA Server 2006.</p><p></p><p>Windows Live Messenger is a popular instant messaging application, many people using it regularly. But sometimes, people use it at work place and unintentionally receive a file containing virus. Then, they execute it, so the virus spread on the network. Therefore, it is a task of an IT staff to secure the system and prevent this issue. The best and effective solution is to enforce strictly firewall policy. But sometimes, you cannot do that. For example, users on research department want access to any websites (HTTP) because they do not know what websites they want to access until they need. Then, you have to create an access rule to allow HTTP to from Internal to External for these users. Now they can use Windows Live Messenger because Windows Live Messenger communicates with its servers through either of these ports:</p><ul><li>MSN Messenger protocol (TCP: 1863).</li><li>HTTP protocol (TCP: 80).</li></ul><p>If you block only MSN Messenger protocol, users still can use Windows Live Messenger through HTTP protocol. Now what should you do? Block HTTP protocol? Doing that will also block users to access websites so you cannot do that. Here it comes, HTTP filtering. You can block only Windows Live Messenger on ISA Server without blocking the HTTP protocol if you know the signature. HTTP header is also the signature.</p><p>So what is the signature of Windows Live Messenger? I have sniffed HTTP packets while I signing to Windows Live Messenger. Here are the signature and protocol port of Windows Live Messenger:</p><ul><li>The client communicates with the server of Windows Live Messenger using <strong>TCP outbound port 1863</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_1.png" width="200" height="49" alt="Windows Live Messenger TCP Packets" title="Windows Live Messenger TCP Packets"  /></a></li><li>While the client requesting information from the server (request header), one signature of it is <strong>User-Agent: Windows Live Messenger</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_2.png" width="200" height="51" alt="User-Agent: Windows Live Messenger HTTP packet" title="User-Agent: Windows Live Messenger HTTP packet"  /></a></li></ul><p>Now I show you how to configure to block Windows Live Messenger on ISA Server 2006.</p><h3>Step-by-step</h3><ol><li>Create an access rule to block TCP outbound port 1863. ISA Server 2006 already has pre-defined this port as <strong>MSN Messenger</strong> protocol. I am not going to show detail steps on creating an access rule. You can review them at <a
href="http://localhost/wordpress/2009/07/29/getting-started-with-microsoft-isa-server-2006-part-7-create-dns-lookup-rule/">Part 7: Create DNS Lookup Rule</a> and <a
href="http://localhost/wordpress/2009/07/17/getting-started-with-microsoft-isa-server-2006-part-8-create-web-access-rule/">Part 8: Create Web Access Rule</a>.<ul><li>Rule Name: <strong>Block Windows Live Messenger</strong></li><li>Action: <strong>Deny</strong></li><li>Protocol: <strong>MSN Messenger</strong></li><li>From: <strong>Internal</strong></li><li>To: <strong>External</strong></li><li>Condition: <strong>All Users</strong></li></ul><p><a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_3.png" width="200" height="123" alt="Create Access Rule to Block MSN Messenger Protocol" title="Create Access Rule to Block MSN Messenger Protocol"  /></a></li><li>Next, configure HTTP filtering to block the signature of Windows Live Messenger. Right click on <strong>&#8220;Allow HTTP, HTTPS for Linglom&#8221;</strong> and select <strong>Configure HTTP</strong>.<br
/> <em><strong>Note:</strong></em> This menu option available on an access rule that contains HTTP protocol only.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/4.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_4.png" width="200" height="114" alt="Configure HTTP" title="Configure HTTP"  /></a></li><li>On <strong>Configure HTTP policy for rule</strong>, click on <strong>Signatures</strong> tab and click <strong>Add</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/5.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_5.png" width="200" height="222" alt="Add Signature to Rule" title="Add Signature to Rule"  /></a></li><li>On <strong>Signature</strong>, enter these information below to block Windows Live Messenger and then click <strong>OK</strong>.<ul><li>Name: <strong>Blocks Windows Live Messenger</strong> or any name as you want.</li><li>Search in: <strong>Request headers</strong></li><li>HTTP header: <strong>User-Agent:</strong></li><li>Signature: <strong>Windows Live Messenger</strong></li></ul><p><em><strong>Note:</strong></em> Don&#8217;t forget semi-colon (:) after <strong>User-Agent</strong> text.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/6.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_6.png" width="200" height="204" alt="The Signature of Windows Live Messenger" title="The Signature of Windows Live Messenger"  /></a></li><li>Back to <strong>Configure HTTP policy for rule</strong>, you see the signature has been created for this rule. You also can disable the signature by un-check it. On this example, leave it as checked to enable the signature. Click <strong>OK</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/7.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_7.png" width="200" height="222" alt="Blocks Windows Live Messenger" title="Blocks Windows Live Messenger"  /></a></li><li>Don&#8217;t forget to click <strong>Apply</strong> to update the configuration.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/8.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_8.png" width="200" height="114" alt="Apply Configurations" title="Apply Configurations"  /></a></li><li>Let&#8217;s try to sign in Windows Live Messenger on the client computer, you see that I cannot sign in any more.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/9.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-12/_9.png" width="200" height="263" alt="Can't Sign in on Windows Live Messenger" title="Can't Sign in on Windows Live Messenger"  /></a></li></ol><h3>Summary</h3><p>Now You have reach the end of <strong>Getting started with Microsoft ISA Server 2006</strong> series. This series contains 12 parts: it gives you an introduction of ISA Server 2006, how to install and configure ISA Server 2006 on simple environment, how to create an access rule, and how to use some useful features on ISA Server 2006. I hope you get what you want on this series. If you have any comment or suggestion, feel free to leave it below.</p><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a> <small>Have you ever need to block users using MSN or...</small></li><li><a
href='http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering'>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</a> <small>This article is one of the series of Getting started...</small></li><li><a
href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a> <small>Introduction Microsoft Internet Security and Acceleration Server (ISA Server) is...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>Getting started with Microsoft ISA Server 2006, Part 11: HTTP Filtering</title><link>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/</link> <comments>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/#comments</comments> <pubDate>Wed, 17 Feb 2010 02:58:03 +0000</pubDate> <dc:creator>linglom</dc:creator> <category><![CDATA[ISA]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Getting Started]]></category> <guid
isPermaLink="false">http://www.linglom.com/?p=975</guid> <description><![CDATA[This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at Getting started with Microsoft ISA Server 2006, Part 1: Introduction. HTTP Filtering From Part 10: Logging, you learn how to configure and use logging on ISA Server 2006. Now, you will [...]
Related posts:<ol><li><a
href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a> <small>Have you ever need to block users using MSN or...</small></li><li><a
href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a> <small>Introduction Microsoft Internet Security and Acceleration Server (ISA Server) is...</small></li><li><a
href='http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger'>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</a> <small>This article is one of the series of Getting started...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>This article is one of the series of Getting started with Microsoft ISA Server 2006. You can see the index of this series at <a
href="http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/">Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a>.</p><p><span
id="more-975"></span></p><h3>HTTP Filtering</h3><p>From <a
href="http://www.linglom.com/2010/02/05/getting-started-with-microsoft-isa-server-2006-part-10-logging/">Part 10: Logging</a>, you learn how to configure and use logging on ISA Server 2006. Now, you will learn about HTTP filtering.</p><p></p><p>Have you ever want to block users using MSN or Yahoo messenger, or deny them to using free email services, or block them to post anything on web boards, or block them to use bit-torrent to download files? This post will answer these questions with Microsoft ISA Server 2006.</p><p>HTTP traffic is a data packet using HTTP protocol on the network which is used by most applications. On each packet of HTTP traffic, there is a header which contains information about server and client that are communicating each other at the time. These header information are such as:</p><ul><li>Request Methods. For example, GET, POST, CONNECT.</li><li>User-Agent, such as Mozilla/4.0, Mozilla/5.0, Firefox</li><li>Content-Type. The mime type of the body of the request, such as application/x-www-form-urlencoded, application/xml, image/jpeg, text/xml.</li><li>Host. The domain name of the server, for example, www.bing.com, www.linglom.com.</li></ul><p>For more information about HTTP, see these links from wiki.org:</p><ul><li><a
href="http://en.wikipedia.org/wiki/HTTP" target="_blank rel="nofollow">Hypertext Transfer Protocol</a></li><li><a
href="http://en.wikipedia.org/wiki/List_of_HTTP_headers" target="_blank rel="nofollow">Lists of HTTP headers</a></li></ul><p>So why learn about these HTTP headers? You can use these HTTP headers information to block or allow specific application on ISA Server 2006. Still not get it? Let&#8217;s see some examples of real HTTP traffic.</p><p>You can use some sniffer program to capture data packets that pass in/out through a network interface card on a computer. On this example, I use <a
href="http://www.ethereal.com/" target="_blank" rel="nofollow">Ethereal</a>. I install it on the same server as ISA Server 2006 but you can install and test on any computer as you want. Then, I start capturing packets on the network interface card that connects to the Internet and browse to http://www.bing.com using Internet Explorer.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/1.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_1.png" width="200" height="150" alt="Browse to Bing.com" title="Browse to Bing.com"  /></a></p><p>After that, I see these HTTP traffics on ethereal. First, My computer sends a HTTP request to the web server (www.bing.com).<br
/> <strong>Detail:</strong> Request Method is <strong>GET</strong>. User-Agent is Mozilla/4.0 (compatible: MSIE 6.0). HOST is <strong>www.bing.com</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/2.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_2.png" width="200" height="54" alt="HTTP Request" title="HTTP Request"  /></a></p><p>Second, the web server has send HTTP response back to the client. The response packet looks similar as the figure below.<br
/> <strong>Detail:</strong> Response Code is <strong>200 (OK)</strong>. Content-Type is <strong>text/html</strong>.<br
/> <a
href="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/3.png" target="_blank"><img
src="http://www.linglom.com/images/Windows/Security/ISA-Server/Getting-Started/Part-11/_3.png" width="200" height="97" alt="HTTP Response" title="HTTP Response"  /></a></p><h3>What&#8217;s Next?</h3><p>Now you learn some concepts about HTTP and its header. Next, I will show how to use these information to block Windows Live Messenger on ISA Server 2006. See <a
href="http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/">Part 12: Block Windows Live Messenger</a>.</p><p>Related posts:<ol><li><a
href='http://www.linglom.com/2008/02/01/getting-started-with-microsoft-isa-server-2006-part-v-configure-http-filter/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter'>Getting started with Microsoft ISA Server 2006, Part V: Configure HTTP Filter</a> <small>Have you ever need to block users using MSN or...</small></li><li><a
href='http://www.linglom.com/2009/08/21/getting-started-with-microsoft-isa-server-2006-part-1-introduction/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 1: Introduction'>Getting started with Microsoft ISA Server 2006, Part 1: Introduction</a> <small>Introduction Microsoft Internet Security and Acceleration Server (ISA Server) is...</small></li><li><a
href='http://www.linglom.com/2010/02/24/getting-started-with-microsoft-isa-server-2006-part-12-block-windows-live-messenger/' rel='bookmark' title='Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger'>Getting started with Microsoft ISA Server 2006, Part 12: Block Windows Live Messenger</a> <small>This article is one of the series of Getting started...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.linglom.com/2010/02/17/getting-started-with-microsoft-isa-server-2006-part-11-http-filtering/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 14/85 queries in 0.067 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-05 04:01:01 -->
