<?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/"
	>

<channel>
	<title>ASP.NET MSSQL Webhosting Blog &#187; ASP.NET Web Hosting</title>
	<atom:link href="http://www.mywebhostingblog.net/category/aspnet-web-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Tue, 10 Nov 2009 19:53:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Error 916 Connecting SQL 2005 DB with MSSMS (Express) 2008</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/error-916-connecting-ms-sql-2005-db-with-mssms-express-2008/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/error-916-connecting-ms-sql-2005-db-with-mssms-express-2008/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 03:21:36 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MSSMS]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[remote connection]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=558</guid>
		<description><![CDATA[Since eUKhost has started providing Windows 2008 Server with Shared hosting as well as with Windows dedicated Server hosting there has been allot of new errors coming across. Also ASP .NET with Visual Studio 2008 and MS SQL 2008 has been widely used after the final release of Windows 2008 Server along with MS SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Since eUKhost has started providing <strong>Windows 2008 Server</strong> with <strong>Shared hosting</strong> as well as with <strong>Windows dedicated Server host</strong>ing there has been allot of new errors coming across. Also<strong> ASP .NET</strong> with Visual Studio 2008 and MS SQL 2008 has been widely used after the final release of <strong>Windows 2008 Server</strong> along with<strong> MS SQL 2008</strong>. The most command error that we have seen in combination of<strong> MS SQL 2005</strong> and <strong>SQL 2008</strong> is:</p>
<p><code>TITLE: Microsoft SQL Server Management Studio<br />
------------------------------</code></p>
<p><code>Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)<br />
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;LinkId=20476</code></p>
<p><code>------------------------------<br />
ADDITIONAL INFORMATION:<br />
</code><br />
<code>An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)<br />
------------------------------</code></p>
<p><span id="more-558"></span><br />
<code>The server principal "my_db_user" is not able to access the database "any_other_db_on_the_server" under the current security context. (Microsoft SQL Server, Error: 916)<br />
</code><br />
<code>For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=09.00.1399&amp;EvtSrc=MSSQLServer&amp;EvtID=916&amp;LinkId=20476</code></p>
<p>This is something similar to the image below:</p>
<div id="attachment_567" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-567" title="microsoft-sql-server-management-studio-error-9162" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/07/microsoft-sql-server-management-studio-error-9162-300x96.jpg" alt="Error Connecting to MS SQL 2005 DB Remotely Management Studio 2008" width="300" height="96" /><p class="wp-caption-text">Error Connecting to MS SQL 2005 DB Remotely Management Studio 2008</p></div>
<p>This error happen to appear while remotely connecting a database on <strong>Microsoft SQL server 2005</strong> with any version of <strong>Microsoft SQL Server Management Studio 2008</strong>, It will not appear if you connect the <strong>SQL server 2005</strong> with <strong>Microsoft SQL Server Management Studio Express 2005</strong>. And the link that has been specified in the error above is of any no use, also the error started to be reported more for a <strong>Windows Shared hosting</strong> clients rather than the one with <strong>Windows dedicated server</strong>. Because the problem only appears to happen if you connect with a user that has access to a particular database and not with the user that has administrator access over the <strong>Microsoft SQL server</strong>. I had to scratch my head for the solution as it seems to be related more to the permissions on the database user. Now the interesting thing here is that the <strong>SQL database</strong> that in the error is different than the <strong>MSSQL database</strong> on which the user has its access on.</p>
<p>After allot of searching on the web I found that this is a bug on all versions of Microsoft SQL Server Management Studio (Express) 2008 and there is a simple work around to access your database remotely with no errors at all. Here is what that is required:</p>
<p>1) Connect to the <strong>MS SQL</strong> server with the user credentials in <strong>MSSMS (Express) 2008</strong>.<br />
2) Bring Object Explorer Details window by selecting View &#8211;&gt; Object Explorer Details in menu (or just by hitting F7)<br />
3) In Object Explorer window click at Databases folder<br />
4) In Object Explorer Details Window right-click at the column header and deselect Collation<br />
5) Refresh Databases folder.</p>
<p>Refer to the image below for better understanding:</p>
<div id="attachment_568" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-568" title="microsoft-sql-server-management-studio-remove-collation2" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/07/microsoft-sql-server-management-studio-remove-collation2-300x238.jpg" alt="Fix Failed to retrieve data for this request Error: 916 Management studio" width="300" height="238" /><p class="wp-caption-text">Fix Failed to retrieve data for this request Error: 916 Management studio</p></div>
<p>That is it. This will give you the desired access over your database and you will be happily make changes as per your need.<br />
This is just another complicated error by Microsoft which has a very simple fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/error-916-connecting-ms-sql-2005-db-with-mssms-express-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL WebAdmin ASP.NET ENT Manager in Plesk show Virus</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/#comments</comments>
		<pubDate>Sat, 23 May 2009 18:20:55 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virus]]></category>
		<category><![CDATA[Webadmin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=521</guid>
		<description><![CDATA[We have recently had this complain from our various Shared hosting as well as Dedicated Server hosting clients that MSSQL Webadmin ASP .NET Enterprise Manager is having a virus / trojan on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be MSSQL [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently had this complain from our various <strong>Shared hosting</strong> as well as <strong>Dedicated Server hosting</strong> clients that <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> is having a <strong>virus / trojan</strong> on it. When the first complain arrived we too thought that there seems to be a problem with the server and might be <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> has got an injection in it. But after receiving too many complains from most of our <strong>dedicated server</strong> clients we started investigating the problem and now we knew that this is something that has happen globally. After viewing <strong>MSSQL Webadmin ASP .NET Enterprise Manager</strong> on <strong>Plesk server</strong> it looked as the picture below:</p>
<p><span id="more-521"></span></p>
<p><img class="aligncenter size-medium wp-image-522" title="mssql-webadmin-showing-trojen-virus" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/05/mssql-webadmin-showing-trojen-virus-300x219.jpg" alt="mssql webadmin showing trojen virus 300x219 MSSQL WebAdmin ASP.NET ENT Manager in Plesk show Virus" width="300" height="219" /></p>
<p>We understood that the problem was not with the <em><strong>mssql.domain_name</strong></em> link but the virus alert only happened after click on <strong><em>ASP .NET Enterprise Manager, Recomended this site</em></strong>. And the link was:</p>
<p><code>www.referralplanet.com/referral/windows/referralWindow.asp?id=17</code></p>
<p>Since the site was not hosted with us we had a sigh of relief that the problem is not with the server however we thought we still have a security problem if the link has been injected into <strong>ASP .NET Manager</strong> site in IIS, may be due to a security issue with <strong>Plesk control panel</strong>. And after checking several servers we came to know that the problem has happened to the site that is recommended on <strong>MSSQL Webadmin site </strong>and not the server.</p>
<p>If you want to remove this link from your server as well as from the <strong>MSSQL WebAdmin</strong> site then follow the steps below:</p>
<p>1. Login into the server through RDP with Administrator user.<br />
2. Go to <em><strong>D:\inetpub\vhosts\sqladmin\mssql\app</strong></em><br />
3. Open the <em><strong>navbar.aspx</strong></em> page in notepad<br />
4. Go to <em><strong>line number 119</strong></em> and remove the code below:</p>
<p><code>&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;<br />
&lt;a onclick="refWindow=window.open('http:// www.referralplanet.com/referral/windows/referralwindow.asp?id=18','referralWindow' ,'width=350,height=520,scrollbars=yes,menubar=no,resizable=yes'); refWindow.focus(); return false;" target=_blank href="http:// www.referralplanet.com/referral/windows/referralWindow.asp?id=17"&gt;<br />
&lt;IMG alt="Click Here To Tell A Friend" src="images/tellafriend.gif" border=0&gt;&lt;/A&gt;<br />
&lt;!-- Begin ReferralPlanet.com Referral Script --&gt;</code></p>
<p>5. Save the file and exit.</p>
<p>This problem must have infected millions of computer in the world. Let see when chinese hacker stop putting their shit on other&#8217;s website and get mature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/mssql-webadmin-aspnet-ent-manager-in-plesk-show-virus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>About ASP .NET</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/about-asp-net/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/about-asp-net/#comments</comments>
		<pubDate>Sat, 02 May 2009 00:44:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[About ASP .NET]]></category>
		<category><![CDATA[ASP .NET]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=3</guid>
		<description><![CDATA[Information and definition of ASP .NET and its Advantages over other scripting languages.]]></description>
			<content:encoded><![CDATA[<p><strong>What is ASP.NET?</strong></p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>ASP.NET</strong>, a higher version of ASP, is a programming framework used to create enterprise-class Web Applications. These applications are available to the entire world providing efficient information to their end users. <strong>ASP .NE</strong>T has far more advantages than just a next version of ASP. And it is easily available to configure and use no matter if you have a <strong>Dedicated server </strong>or a <strong>Shared hosting </strong>account.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Why to use ASP.NET?</strong></p>
<p class="MsoNormal"><strong></strong><br />
<span id="more-3"></span></p>
<p class="MsoNormal">
<p class="MsoNormal">Microsoft has worked well to shift their focus on Internet world from a Windows based platform since 1995 and finally <strong>Microsoft</strong> introduced <strong>Active Server Pages</strong> (ASP) in 1996 that was much easy to understand than the orthodox languages like <strong>Java, C++</strong> and <strong>Perl </strong>as it offered the efficiency of ISAPI applications. However ASP scripts were difficult to debug and main, since it consisted unstructured code and interpreted script. ASP also made it difficult for developer to ingrate the web development software as it required to understand many different technologies. If the web application grew more complex and bigger it became harder to maintain as the number of line in source code increased dramatically, specially when you host your application on a <strong>Shared hosting server</strong>. Therefore, a need of an architecture was required that would allow development of Web application in a consistent way.</p>
<p class="MsoNormal">
<p class="MsoNormal">A new technology <strong>.NET framework</strong> was introduced with the intention to provide globally distributed software with Internet functionality and interoperability. The<strong> .NET Framework</strong> includes multiple language support and consists of many class libraries with a common execution point. <strong>.NET framework </strong>provides a high level of flexibility allowing to development a top class web application that does different things. <strong>ASP .NET</strong> is built into this framework which allows a developer to crate a web application using any of the built-in languages. Making it easy to develop an Internet based web application.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>ASP.NET</strong> uses the<strong> Common Language Runtime</strong> (<strong>CLR</strong>) provided by the <strong>.NET Framewor</strong>k which is not available in ASP. Execution of the code we rite is managed by this <strong>CLR. ASP.NET</strong> code is a compiled <strong>CLR</strong> code instead of interpreted code <strong>(ASP)</strong>. The <strong>CLR </strong>makes development of Web applications simple and also allows objects written in different languages to interact with each other.</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Advantages of Using ASP.NET:</strong></p>
<p class="MsoNormal">
<ul>
<li><strong>ASP.NET</strong> reduces the code drastically that is required to build large applications</li>
<li><strong>ASP.NET</strong> makes for easy deployment. There is no need to register components because the configuration information is built-in</li>
<li><strong>ASP.NET</strong>, with an event-driven, server-side programming model makes development simpler and easier to maintain.</li>
<li>The pages have lots of power and flexibility by this approach since the source code is executed on the server.</li>
<li>The Web server continuously monitors the pages, components and applications running on it. If it notices memory leaks, infinite loops, other illegal software or activities, it seamlessly kills those activities and restarts itself</li>
<li>Execution of <strong>.NET application</strong> is fast as the Web Server compiles the page the first time it is requested. The server saves the compiled version of the page to use it next time the page is requested</li>
<li><strong>ASP.NET</strong> applications are more secure as only the HTML produced by the <strong>ASP .NET</strong> page is sent back to the browser and the application source code you write is not sent and is not easily stolen</li>
<li><strong>ASP.NET</strong> pages are easy to write and maintain because the source code and HTML are together</li>
<li><strong>ASP.NET</strong> applications run faster and counters large volumes of users without performance problems</li>
<li><strong>ASP .NET</strong> validates information (validation controls) entered by the user without writing a single line of code</li>
<li><strong>ASP.NET</strong> is compatible with <strong>ADO.NET</strong> using data-binding and page formatting features.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/about-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for MSDTC Service errors in Windows Cluster</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/fix-for-msdtc-service-errors-in-windows-cluster/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/fix-for-msdtc-service-errors-in-windows-cluster/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 10:57:50 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Exchange Hosting]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[MSDTC]]></category>
		<category><![CDATA[MSDTC configuration]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=318</guid>
		<description><![CDATA[Some times Configuring MSDTC and their error can ruin your Windows Cluster service and your time as well. You may get one of the following error when you failover the MSDTC service from one Dedicated node to another. This would only happen if the Cluster services has been installed before installing and configuring MSDTC Service. [...]]]></description>
			<content:encoded><![CDATA[<p>Some times Configuring <strong>MSDTC</strong> and their error can ruin your <strong>Windows Cluster service</strong> and your time as well. You may get one of the following error when you failover the <strong>MSDTC </strong>service from one <strong>Dedicated </strong>node to another.</p>
<p>This would only happen if the <strong>Cluster services</strong> has been installed before installing and configuring MSDTC Service. Hence it is highly recommended that you first install and configure MSDTC and then configure the Windows Cluster Service.</p>
<p><code>Event ID: 4097<br />
Description:<br />
MS DTC started with the following settings: Security Configuration (OFF = 0 and ON = 1): Network Administration of Transactions = 1, Network Clients = 0, Distributed Transactions using Native MSDTC Protocol = 1, Transaction Internet Protocol (TIP) = 0, XA Transactions = 1.</code></p>
<p>OR</p>
<p><code>Event ID: 4395<br />
Description:<br />
MSDTC detected that MSDTC related information in the local registry is different from that in the shared cluster registry. Error Specifics: d:ntcomcom1xdtcsharedmtxclumtxclusetuphelper.cpp:541, CmdLine: C:WINNTSystem32msdtc.exe, Pid: 796<br />
Data:<br />
0000: 05 40 00 80 .@.?</code></p>
<p>OR</p>
<p><code>Event ID:	4384<br />
Description:<br />
MS DTC was unable to start because the installation was not configured to run on a cluster. Please run comclust.exe and restart MS DTC. Error Specifics: d:ntcomcom1xdtcsharedmtxclumtxclusetuphelper.cpp:668, CmdLine: C:WINNTSystem32msdtc.exe, Pid: 796</code></p>
<p>OR</p>
<p><code>Event ID : 7024<br />
Source : Service Control Manager<br />
Description: The MSDTC service terminated with service specific error 3221229584.</code></p>
<p>Initially you should try and run the command below and check if it solves the problem:</p>
<p><code>msdtc -resetlog</code></p>
<p>If that does not help then follow the fix below:</p>
<p><span id="more-318"></span></p>
<p>1. Delete the DTC resource<br />
2. Delete MSDTC folder from the quorum disk.</p>
<p><strong>On Node 1:</strong></p>
<p><strong>&#8211; Stop the Cluster Service</strong></p>
<p><strong>&#8211; Remove Enable network DTC  Service with the command below:</strong></p>
<p><code>msdtc -uninstall</code></p>
<p>Make sure to check the Success in the Event logs.</p>
<p><strong>&#8211; Verify that the following registry key has been removed as well.. if not then remove it manually.</strong></p>
<p><code>HKEY_CLASSES_ROOTCID<br />
HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSDTC<br />
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSDTC</code></p>
<p><strong>&#8211; Reboot the Server</strong></p>
<p><strong>&#8211; After the Server is back online reinstall Enable network DTC Service with the command below:</strong></p>
<p><code>msdtc -install</code></p>
<p>Now create the DTC resource on <strong>Node 1</strong> and it should come online.</p>
<p><strong>Now on Node 2</strong></p>
<p><strong>&#8211; Stop the Cluster Services.</strong></p>
<p><strong>&#8211; Evict Node 2 from the Cluster</strong></p>
<p><strong>&#8211; Remove Enable network DTC  Service with the command below:</strong></p>
<p><code>msdtc -uninstall</code></p>
<p>Make sure to check the Success in the Event logs.</p>
<p><strong>&#8211; Verify that the registry key has been removed as well.. if not then remove it manually.</strong></p>
<p><strong>&#8211; Reboot<br />
</strong></p>
<p><strong>&#8211; </strong><strong>Reinstall Enable network DTC Service with the command below:</strong></p>
<p><code>msdtc -install</code></p>
<p><strong>&#8211; Verify that the Service has now Started and also registry keys created.</strong></p>
<p><strong>&#8211; Rejoin the node back into the cluster.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/fix-for-msdtc-service-errors-in-windows-cluster/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Write Permissions on Plesk Windows Server Get Removed</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 06:18:24 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=436</guid>
		<description><![CDATA[This has been a regular problem with most of our Windows dedicated Server Clients as well as Windows Shared hosting client that has Plesk 8.4 installed on them, specially for those who need write permissions on web user for the ASP .NET/MSSQL and PHP/MySQL application, that the write permissions on the folder get removed own [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a regular problem with most of our<strong> Windows dedicated Server Clients</strong> as well as <strong>Windows Shared hosting client </strong>that has Plesk 8.4 installed on them, specially for those who need <strong>write permissions </strong>on web user for the <strong>ASP .NET/MSSQL</strong> and <strong>PHP/MySQL</strong> application, that the write <strong>permissions </strong>on the folder get <strong>removed</strong> own its own without any changes being made by us or the client. After allot of scratching and investigation we were finally able to reveal the secrete about the permissions issue. The problem was not with Plesk but the way we use to set <strong>permissions </strong>on the folder.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-437" title="Plesk Permissions Problem on Windows" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/plesk-86-premissions-problems.jpg" alt="plesk 86 premissions problems Write Permissions on Plesk Windows Server Get Removed" width="465" height="160" /></p>
<p>While I was searching for the solution I found the KB articel on Parallels sites below:</p>
<p><code>http://kb.parallels.com/en/1147</code></p>
<p><span id="more-436"></span></p>
<p>Where they (<strong>Plesk adminstrators</strong>) have clearly mentioned that custom permissions set on top level folder like httpdocs, statistics, cgi-bin etc will get reset by Plesk. So I decided to make a test, I manually gave write permissions to httpdocs folder and ran <em><strong>webservmng.exe</strong></em> on it and yes it was removed. Then after allot digging I would that there us a file<em> .Security</em> which is saved under the folder with the domain name (parallel to httpdocs folder), that stores all permissions for that domain.</p>
<p>Before we start please be informed that these steps are applicable to <strong>Parallel Plesk version 8.4</strong> and above as <em>.Security</em> file was introduced in 8.4 only.</p>
<p>So here are steps to get around the problem permanently:</p>
<p>1. Backup the <em>.Security</em> file and delete it from<em> [drive]:inetpub/vhosts/domain_name,</em> this file saves all the permissions assigned to that user from Plesk on Windows. Deleting it will remove all the records.</p>
<p>2. After renaming or deleting the <em>. Security</em> file, run this command below:</p>
<p><code>"%plesk_bin%/websrvmng.exe" --reconfigure-vhost --vhost-name=domain_name</code></p>
<p>3. This command will create a new <em>.Security</em> file with all default permissions on that domain.</p>
<p>4. Now login into Plesk &gt;&gt; Click on Domains &gt;&gt; domain_name &gt;&gt; File Manager &gt;&gt; httpdocs &gt;&gt; golden padlock of folder_name to set perm on &gt;&gt; &#8220;Advance&#8221; Button &gt;&gt; Select users &gt;&gt; Assign permissions &gt;&gt; OK.</p>
<p>These steps will save new permissions in .Security file and even if you run <em><strong>websrvmng</strong></em> on that domain again, the new permissions that has been set from Plesk will not get removed. There is no need to add any special group or users like, <strong>ASPNET </strong>or <strong>NETWORK SERVICE</strong> to any folder as those permissions are handled by <strong>IUSR_ &amp; IWAM_/IWPD_ users</strong>.</p>
<p>Any permissions that has been assigned directly to httpdocs folder will get reset by <strong>Plesk </strong>and if you inherit them to sub folder, permissions from sub folder will also get removed.</p>
<p>So the moral is,<strong> DO NOT</strong> give any permissions from RDP, use File Manager option if you want to keep the trouble of permissions away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/write-permissions-on-plesk-windows-server-get-removed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Point Domain to Another IP Without Changing DNS Name Servers</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/point-domain-to-another-ip-without-changing-dns-name-servers/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/point-domain-to-another-ip-without-changing-dns-name-servers/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 11:48:21 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Exchange Hosting]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Linux Server Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Hosts]]></category>
		<category><![CDATA[Name Servers]]></category>
		<category><![CDATA[Sitepreview]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=427</guid>
		<description><![CDATA[One can point your site to any designated IP address you want without changing the Name server of your Domain. Yes, you will be able to view/test your site on new server without changing the name servers as well as having trouble of using site Preview options in Control panel like Plesk. This option is [...]]]></description>
			<content:encoded><![CDATA[<p>One can point your site to any designated IP address you want without changing the Name server of your Domain. Yes, you will be able to view/test your site on new server without changing the name servers as well as having trouble of using site Preview options in Control panel like Plesk. This option is also helpful in the case of some site that use .js script in their codes since those scripts don&#8217;t work in Plesk site preview option. Specially in case of sites that work on <strong>DotNetNuke [DNN]</strong>.</p>
<p><strong>So here we go:</strong></p>
<p>On your local machine, [<strong>AND NOT THE SERVER</strong>]:<br />
Goto START &gt;&gt; Run &gt;&gt; and Type:<br />
<code>notepad "C:WINDOWSsystem32driversetchosts"</code><br />
And hit Enter</p>
<p><span id="more-427"></span>If you get file does not exist error then create hosts file in notepad <strong>&#8220;C:WINDOWSsystem32driversetc&#8221;</strong> folder.</p>
<p>At the end of the file you will have:</p>
<p><code>127.0.0.1    localhost</code></p>
<p>Just add your domain with the IP you want to point to, and it will look like, this will be also applicable if you have create a new hosts file:</p>
<p><code>127.0.0.1    localhost<br />
192.168.1.52    mywebhostingblog.net<br />
192.168.1.52    www.mywebhostingblog.net</code></p>
<p>Save the file and exit.</p>
<p>Now ping the domain on the <strong>computer </strong>you have made changes on and it will point to the <strong>IP address</strong> defined. You can now browse your site without the <strong>site preview</strong> and you will have to the content of the <strong>server </strong>you are moving to. Just remove the entries from the <strong>hosts </strong>file to point your domain back it was.</p>
<p>Wasn&#8217;t that Simple..!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/point-domain-to-another-ip-without-changing-dns-name-servers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Block IP on Windows.</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:49:22 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Block]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=285</guid>
		<description><![CDATA[It is very easy to block a single IP address on a Linux server but Windows Default firewall doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However Microsoft released this and introduced IP Security Polices in their Local Security Polices option in the release of their SP2. [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy to block a single IP address on a <strong>Linux </strong>server but <strong>Windows </strong>Default <strong>firewall </strong>doesn&#8217;t allow us to block a single IP address on the server or for particular ports. However <strong>Microsoft </strong>released this and introduced <strong>IP Security Polices</strong> in their <strong>Local Security Polices</strong> option in the release of their SP2. But most of us are not aware of this option and we mostly adopted third party firewall and pay for their heavy license. However Firewall onl Windows 2008 Server is far more advanced than that on Windows 2003.</p>
<p>It would not be the case now as I have listed detailed steps along with the images on how to block IP using the IP security policy in Windows. This option is also available in <strong>XP </strong>as well as <strong>Windows 2003</strong> Server edition.</p>
<p><strong>How to BLock IP Using Windows:</strong></p>
<p>You can either open MMC from START &gt;&gt; RUN &gt;&gt; MMC and add a new Snapin for IP Security policy with steps below:</p>
<p><span id="more-285"></span></p>
<p>Click &#8216;Start&#8217; &gt; &#8216;Run&#8217; &gt;type &#8216;MMC&#8217; press ok.<br />
In the console click &gt; &#8216;File&#8217; &gt; &#8216;Add/Remove Snap in&#8217;<br />
In the &#8216;Standalone Tab&#8217; click The &#8216;add&#8217; button<br />
Seclect &#8216;IP Security Policy Managment&#8217; &gt; &#8216;ADD&#8217; &gt; &#8216;Local Computer&#8217; &gt; &#8216;finish&#8217;  &gt; &#8216;close&#8217; &gt; &#8216;ok&#8217;<br />
You should now be back to the Management console.</p>
<p>OR</p>
<p>Just goto START &gt;&gt; PROGRAMS &gt;&gt; ADMINISTRATIVE TOOLS &gt;&gt; LOCAL SECURITY POLICIES ON LOCAL COMPUTER to open the IP Security Management Console.</p>
<p>1. Select IP Security Policy and Right Click on the right pane to select new Policy. The screen will like an image below:</p>
<div id="attachment_288" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1.png"><img class="size-medium wp-image-288" title="block-ip-in-windows-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-1-300x179.png" alt="Windows IPSecurity Policies" width="300" height="179" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>2. This will open the IP Security Policy Wizard, Just click on Next button.</p>
<div id="attachment_289" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2.png"><img class="size-medium wp-image-289" title="block-ip-in-windows-2" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-2-300x238.png" alt="Figure 2" width="300" height="238" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>3. On the Next screen you have to define the name of your IP Security policy and its description and then click Next Button.</p>
<div id="attachment_290" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3.png"><img class="size-medium wp-image-290" title="block-ip-in-windows-3" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-3-300x240.png" alt="Figure 3" width="300" height="240" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>4. Plesk uncheck the box for &#8220;<strong>Activate the default Response Rule</strong>&#8221; and then click Next Button..</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4.png"><img class="size-medium wp-image-291" title="block-ip-in-windows-4" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-4-300x238.png" alt="Figure 4" width="300" height="238" /></a><p class="wp-caption-text">Figure 4</p></div>
<p>5. On the Next screen remove the check for <strong>Edit Properties</strong> and Click Finish.</p>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5.png"><img class="size-medium wp-image-292" title="block-ip-in-windows-5" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-5-300x237.png" alt="Figure 5" width="300" height="237" /></a><p class="wp-caption-text">Figure 5</p></div>
<p>6. Once you click on the Finish Button you will see the screen below along with your rule being added to the list. Now we will create an <strong>IP filter list </strong>to block IPs.</p>
<div id="attachment_293" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6.png"><img class="size-medium wp-image-293" title="block-ip-in-windows-6" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-6-300x177.png" alt="Figure 6" width="300" height="177" /></a><p class="wp-caption-text">Figure 6</p></div>
<p>7. Double click on the rule you have just create to open the properties window:</p>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 277px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7.png"><img class="size-medium wp-image-294" title="block-ip-in-windows-7" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-7-267x300.png" alt="Figure 7" width="267" height="300" /></a><p class="wp-caption-text">Figure 7</p></div>
<p>8. Since we have chosen to uncheck <strong>&#8220;Activate the default Response Rule&#8221; </strong>in Step 4 the Dynamic rule in not applied. Click on Add button to open <strong>Security Rule Wizard</strong> and Click again on Add button to open <strong>IP Filter List Wizard.</strong></p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8.png"><img class="size-medium wp-image-295" title="block-ip-in-windows-8" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-8-300x239.png" alt="block ip in windows 8 300x239 How to Block IP on Windows." width="300" height="239" /></a><p class="wp-caption-text">Figure 8</p></div>
<p>9. You will have a screen some what in Figure 9. Put in the name of your list and Click on the Add button.</p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9.png"><img class="size-medium wp-image-296" title="block-ip-in-windows-9" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-9-300x238.png" alt="Figure 9" width="300" height="238" /></a><p class="wp-caption-text">Figure 9</p></div>
<p>10. This will open another window for you to add IP and ports in the IP Filter list. In the Description box just put in the IP address that you want to block and make sure that you keep the check on the box for <strong>&#8220;Mirrored. Match packets with the exact appropriate source and destination addresses&#8221;</strong> and click on the Next button.</p>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10.png"><img class="size-medium wp-image-297" title="block-ip-in-windows-10" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-10-300x233.png" alt="Figure 10" width="300" height="233" /></a><p class="wp-caption-text">Figure 10</p></div>
<p>11. Select <strong>My IP address</strong> in the <strong>Sources Address</strong> from the drop down list.</p>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11.png"><img class="size-medium wp-image-298" title="block-ip-in-windows-11" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-11-300x233.png" alt="Figure 11" width="300" height="233" /></a><p class="wp-caption-text">Figure 11</p></div>
<p>12. You have many more options to select from the list for both in Sources and Destination Address. You will need some advanced knowledge to work with those option. We will select My IP address for now and click on Next button.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12.png"><img class="size-medium wp-image-299" title="block-ip-in-windows-12" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-12-300x233.png" alt="Figure 12" width="300" height="233" /></a><p class="wp-caption-text">Figure 12</p></div>
<p>13. In the IP Traffic Destination, select <strong>&#8220;A specific IP Address&#8221;</strong> and enter the IP address that you want to block on your machine. Here you can also select a sub net from the drop down and block the entire subnet. Once you finish entering an IP/Subnet, click on Next button.</p>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13.png"><img class="size-medium wp-image-300" title="block-ip-in-windows-13" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-13-300x233.png" alt="Figure 13" width="300" height="233" /></a><p class="wp-caption-text">Figure 13</p></div>
<p>14. Here in <strong>IP Protocol Type</strong> you can define the protocol that you want to block, it can be any one from the list for example <strong>TCP, UDP, ICMP etc.</strong> We will select <strong>ANY</strong> which mean all connect from a specific IP address. If you select a protocol from the list andclick Next it will ask you to enter the port address that you want to block, example 80 (See Figure 14.2). But since we want to block all ports we will select Any and click Next (Figure 14.1) and then Finish.</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14.png"><img class="size-medium wp-image-301" title="block-ip-in-windows-14" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-14-300x233.png" alt="Figure 14" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.1</p></div>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142.png"><img class="size-medium wp-image-312" title="block-ip-in-windows-142" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-142-300x233.png" alt="Figure 14.2" width="300" height="233" /></a><p class="wp-caption-text">Figure 14.2</p></div>
<p>15.  After you click on Finish button you will see that the rule has been added in the IP filter list. If you want to add more IP and subnets then click on the Add button to add another rule or block 2nd IP. Once you finish with it you will have rules as in Figure 15.2.</p>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15.png"><img class="size-medium wp-image-302" title="block-ip-in-windows-15" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-15-300x238.png" alt="Figure 15" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.1</p></div>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152.png"><img class="size-medium wp-image-313" title="block-ip-in-windows-152" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-152-300x238.png" alt="Figure 15.2" width="300" height="238" /></a><p class="wp-caption-text">Figure 15.2</p></div>
<p>16. Once your <strong>IP Filter List</strong> is complete click on the <strong>OK</strong> button to get back <strong>Security Rule Wizard.</strong> Select the IP filter list which you have created by clicking on the radio button and click Next.</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16.png"><img class="size-medium wp-image-303" title="block-ip-in-windows-16" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-16-300x239.png" alt="Figure 16" width="300" height="239" /></a><p class="wp-caption-text">Figure 16</p></div>
<p>17. In the Next screen of Security Rule Wizard you will not see any Filter Action as Block as by default it is not created. We will create a Filter action to block connect by click on Add button.</p>
<div id="attachment_304" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17.png"><img class="size-medium wp-image-304" title="block-ip-in-windows-17" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-17-300x239.png" alt="Figure 17" width="300" height="239" /></a><p class="wp-caption-text">Figure 17</p></div>
<p>18. In the Name type <strong>&#8220;Block&#8221;</strong> and any discryption you like and click on Next.</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18.png"><img class="size-medium wp-image-305" title="block-ip-in-windows-18" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-18-300x229.png" alt="Figure 18" width="300" height="229" /></a><p class="wp-caption-text">Figure 18</p></div>
<p>19. In Filter Action General options select Block and click Next.</p>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19.png"><img class="size-medium wp-image-306" title="block-ip-in-windows-19" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-19-300x229.png" alt="Figure 19" width="300" height="229" /></a><p class="wp-caption-text">Figure 19</p></div>
<p>20. And then on Finish to get back to Security Rule Wizard.</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20.png"><img class="size-medium wp-image-307" title="block-ip-in-windows-20" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-20-300x229.png" alt="Figure 20" width="300" height="229" /></a><p class="wp-caption-text">Figure 20</p></div>
<p>21. This will add the Filter option as Block in the list, just click on radio button to select it and click Next.</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21.png"><img class="size-medium wp-image-308" title="block-ip-in-windows-21" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-21-300x239.png" alt="Figure 21" width="300" height="239" /></a><p class="wp-caption-text">Figure 21</p></div>
<p>22. Click Finish to complete the security Rule Wizard.</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22.png"><img class="size-medium wp-image-309" title="block-ip-in-windows-22" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-22-300x239.png" alt="Figure 22" width="300" height="239" /></a><p class="wp-caption-text">Figure 22</p></div>
<p>23. You will see the rule added in the list, you can add more rule with the same steps. Now just click OK to finish with the rules.</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 280px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23.png"><img class="size-medium wp-image-310" title="block-ip-in-windows-23" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-23-270x300.png" alt="block ip in windows 23 270x300 How to Block IP on Windows." width="270" height="300" /></a><p class="wp-caption-text">Figure 23</p></div>
<p>24. Now since we have already created the rules to block desired IP address just right click on the IP Security Policy and select Assign to apply the rule on the server.</p>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24.png"><img class="size-medium wp-image-311" title="block-ip-in-windows-24" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/02/block-ip-in-windows-24-300x179.png" alt="Figure 24" width="300" height="179" /></a><p class="wp-caption-text">Figure 24</p></div>
<p>There are allot many option to secure your entire server with IP security policy. You can create more rules to block every one on RDP port TCP 3389 and allow only select IPs. IP Security is IP and port based application and not Services based and you can create the rule as per your need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-block-ip-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt SQL 2005 database with Certificates</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:40:13 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=345</guid>
		<description><![CDATA[Using Certificates to Encrypt Data Certificates are parallel with asymmetric keys in the SQL Server 2005 encryption hierarchy. A certificate is simply a method of using asymmetric encryption. Certificates bind public keys to individuals who hold the associated private key. Certificates use the same RSA algorithm as asymmetric keys; therefore, they are resource-intensive and their [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using Certificates to Encrypt Data</strong></p>
<p><strong>Certificates </strong>are <strong>parallel </strong>with asymmetric keys in the <strong>SQL Server 2005</strong> encryption hierarchy. A certificate is simply a method of using asymmetric <strong>encryption</strong>. Certificates bind public keys to individuals who hold the associated private key. Certificates use the same RSA algorithm as asymmetric keys; therefore, they are resource-intensive and their use is normally restricted to encrypting other keys. <strong>SQL Server</strong> contains an integrated certificate authority, which it uses to issue its own selfsigned, and industry standard X.509 certificates. Alternatively, you can import certificates from an external certificate authority.The use of external certificates allows you to use a wider range of key lengths, which can provide enhanced security. Certificates are the most secure way in which to encrypt data natively within SQL Server 2005.You can use the <strong>CREATE CERTIFICATE </strong>statement to create a certificate within SQL Server 2005.</p>
<p><span id="more-345"></span>The common syntax of the <strong>CREATE CERTIFICATE</strong> statement is as follows:</p>
<p><code>CREATE CERTIFICATE CERTIFICATE_NAME [AUTHORIZATION USER_NAME]<br />
{FROM FILE = 'PATH_TO_PRIVATE_KEY'<br />
WITH PRIVATEKEY [, ENCRYPTION BY PASSWORD = 'PASSWORD' |<br />
, DECRYPTION BY PASSWORD = 'PASSWORD']}<br />
WITH SUBJECT = CERTIFICATE_SUBJECT_NAME, |<br />
[START_DATE = MM/DD/YYYY<br />
END_DATE = MM/DD/YYYY]</code></p>
<p><strong>Here are definitions of the arguments in this syntax:</strong></p>
<p><strong>FILE = PATH_TO_PRIVATE_KEY </strong>Specifies the directory and the file name to the private key.<br />
<strong>ENCRYPTION BY PASSWORD</strong> = ‘PASSWORD’ Specifies the password that will be used to encrypt the certificate private key.<br />
<strong>DECRYPTION BY PASSWORD </strong>= ‘PASSWORD’ Specifies the password originally used to encrypt the private key.<br />
<strong>CERTIFICATE_SUBJECT_NAME</strong> A descriptive string that will be embedded into the certificate metadata.<br />
<strong>START_DATE </strong>Specifies the date in which the certificate becomes valid.<br />
<strong>END_DATE</strong> Specifies the date in which the certificate expires.</p>
<p>For a full listing of all statement arguments, please refer to SQL Server 2005 Books Online.You will need the CREATE CERTIFICATE permission within the database to create a certificate.The following syntax creates a certificate and encrypts the certificate private key with the supplied password:</p>
<p><code>CREATE CERTIFICATE Certificate01 ENCRYPTION BY<br />
PASSWORD = '&amp;7YuKj%4@)aSZ@'<br />
WITH SUBJECT = 'Certificate to test encryption',<br />
START_DATE = '8/13/2007',<br />
EXPIRY_DATE = '8/13/2011'</code></p>
<p>Unlike symmetric and asymmetric keys, certificates can be backed up individually. To back up a certificate, you can use the BACKUP CERTIFICATE statement:</p>
<p><code>BACKUP CERTIFICATE CERT_NAME TO FILE = 'PATH_TO_FILE'<br />
[WITH PRIVATE KEY<br />
(FILE = 'PATH_TO_PRIVATE_KEY_FILE',<br />
ENCRYPTION BY PASSWORD = 'ENCRYPTION_PASSWORD',<br />
DECRYPTION BY PASSWORD = 'DECRYPTION_PASSWORD')]</code></p>
<p>Here are definitions of the arguments of this syntax:</p>
<p><strong>CERT_NAME</strong> Specifies the name of the certificate to be backed up.<br />
<strong>PATH_TO_FILE</strong> Specifies the directory path and the filename that will be used for the certificate public key backup.<br />
<strong>PATH_TO_PRIVATE_KEY_FILE </strong>Specifies the directory path and the filename that will be used for the certificate private key backup.<br />
<strong>ENCRYPTION_PASSWORD</strong> Specifies the password that will be used to encrypt the certificate private key backup.<br />
<strong>DECRYPTION_PASSWORD</strong> Specifies the password that will be used to decrypt the certificate private key within the database.</p>
<p>To execute the BACKUP CERTIFICATE you will need the CONTROL permission on the certificate and the <strong>VIEW</strong> <strong>DEFINITION </strong>permission on the database. The following syntax uses the<strong> BACKUP CERTIFICATE</strong> statement to back up both the public and private key of your previously created certificate, and encrypts the private key backup file with a user-supplied password:</p>
<p><code>BACKUP CERTIFICATE Certificate01 TO FILE =<br />
'C:\backup\certificates\Certificate01.pub'<br />
WITH PRIVATE KEY<br />
(DECRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@',<br />
ENCRYPTION BY PASSWORD = '9UyZ%E!b8%7Ly#',<br />
FILE = 'C:\backup\certificates\Certificate01.prv')</code></p>
<p>For a complete listing of statement arguments and permission requirements, please see SQL Server 2005 Books Online.To restore a certificate from a backup file, you can use the FROM FILE argument within the CREATE CERTIFICATE statement, which we covered earlier.The following syntax restores your previously backed up public and private key:</p>
<p><code>CREATE CERTIFICATE Certificate01 FROM FILE =<br />
'C:\backup\certificates\Certificate01.pub'<br />
WITH PRIVATE KEY (FILE = 'C:\backup\certificates\Certificate01.prv',<br />
DECRYPTION BY PASSWORD = '9UyZ%E!b8%7Ly#',<br />
ENCRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@')</code></p>
<p>Note that if you created Certificate01 previously, you will need to drop the certificate prior to running the preceding syntax.You can obtain a listing of all certificates present in your database by using the sys.certificates view:</p>
<p><code>Select * from sys.certificates</code></p>
<p>To change the properties of a certificate you can use the <strong>ALTER CERTIFICATE</strong> statement:</p>
<p><code>ALTER CERTIFICATE CERTIFICATE_NAME<br />
REMOVE PRIVATE KEY |<br />
WITH PRIVATE KEY (FILE = 'PATH_TO_PRIVATE_KEY' |<br />
DECRYPTION BY PASSWORD = 'PASSWORD' |<br />
ENCRYPTION BY PASSWORD = 'PASSWORD')<br />
WITH ACTIVE FOR BEGIN_DIALOG = [ON | OFF]</code></p>
<p>Here are definitions of the arguments of this syntax:<br />
<strong><br />
CERTIFICATE_NAME</strong> The name of the certificate to be altered.<br />
<strong>REMOVE PRIVATE KEY</strong> Removes the private key from the certificate.<br />
<strong>FILE = ‘PATH_TO_PRIVATE_KEY</strong> Specifies the directory and the file name to the private key.<br />
<strong>DECRYPTION BY PASSWORD</strong> = PASSWORD Specifies the password in which to decrypt the private key.<br />
<strong>ENCRYPTION BY PASSWORD</strong> = PASSWORD Specifies the password in which to encrypt the private key<br />
<strong>ACTIVE FOR BEGIN_DIALOG</strong> Enables or disables a certificate for use with Service Broker.</p>
<p>To run the <strong>ALTER CERTIFICATE</strong> command you will need the <strong>ALTER </strong>permission on the certificate.The following syntax changes your certificate private key protection method from user-supplied password to database master key:</p>
<p><code>ALTER CERTIFICATE Certificate01<br />
WITH PRIVATE KEY (<br />
DECRYPTION BY PASSWORD = '&amp;7YuKj%4@)aSZ@')</code></p>
<p>To encrypt data using the certificate public key, you can use the ENCRYPTBYCERT statement:</p>
<p><code>ENCRYPTBYCERT (CERTIFICATE_ID, 'PLAINTEXT')</code></p>
<p>In this statement, CERTIFICATE_ID specifies the ID of the certificate to be used for encryption. PLAINTEXT is the data string you wish to encrypt.</p>
<p>You will need the VIEW DEFINITION permission on the certificate to execute the ENCRYPTBYCERT statement.The following syntax uses the ENCRYPTBYCERT statement to encrypt the supplied string using your certificate:</p>
<p><code>SELECT ENCRYPTBYCERT(Cert_ID('Certificate01'), 'certificate encryption test')</code></p>
<p>Here are the results:</p>
<p><code>0x50BCA9702D6999578923DAEC2B3EE96E69174429EBF54C392A532919679624097CD050110CEEF4DDB3BF<br />
22656549268848C2F6E6BA70C0E543DFB411B654302AB9582A525DB835940FB76F9AAC501BBC5E3D689FB0<br />
431BA7AF3C51A4DCDC5BCB7D101324E466A23447DF916E80D026E2A2E6D5A433E75804ADF8E9B75BF0E097</code></p>
<p>As we mentioned earlier, the preceding results will differ from what you receive on your SQL Server.To decrypt the cipher text, you can use the DECRYPTBYCERT statement:</p>
<p><code>DECRYPTBYCERT (CERTIFICATE_ID, 'CIPHERTEXT', CERT_PASSWORD)</code></p>
<p>Here are the definitions of the arguments of this syntax:</p>
<p><strong>CERTIFICATE_ID</strong> The ID of the certificate to be used for encryption.<br />
<strong>CIPHERTEXT</strong> The string that was previously encrypted with the certificate public key.<br />
<strong>CERT_PASSWORD</strong> The password that encrypts the certificate private key.</p>
<p>To execute the DECRYPTBYCERT statement, you will need the VIEW DEFINITION permission on the certificate.The following syntax uses the DECRYPTBYCERT statement to decrypt the cipher text and convert the results into the human readable varchar data type:</p>
<p><code>SELECT CAST (DECRYPTBYCERT(Cert_ID('Certificate01'),<br />
0x50BCA9702D6999578923DAEC2B3EE96E69174429EBF54C392A532919679624097CD050110CEEF4DDB<br />
3BF22656549268848C2F6E6BA70C0E543DFB411B654302AB9582A525DB835940FB76F9AAC501BBC5E3D<br />
689FB0431BA7AF3C51A4DCDC5BCB7D101324E466A23447DF916E80D026E2A2E6D5A433E75804ADF8E9B<br />
75BF0E097)<br />
AS varchar)</code></p>
<p>Note that you should substitute the cipher text in the preceding statement with the cipher text that you obtained from the earlier ENCRYPTBYCERT statement. Here is what the results of running the preceding statement will look like:</p>
<p><code>certificate encryption test</code></p>
<p>When you no longer need a certificate, it can be removed from the database using the DROP CERTIFICATE statement:</p>
<p><code>DROP CERTIFICATE CERTIFICATE_NAME</code></p>
<p>In this statement, CERTIFICATE_NAME specifies the name of the certificate to be removed.<br />
To execute the DROP CERTIFICATE statement, you will need the CONTROL permission on the certificate.The following syntax drops your previously created certificate.</p>
<p><code>DROP CERTIFICATE Certificate01</code></p>
<p>The following script outlines the certificate encryption process from end to end:</p>
<p><code>-- Demonstration of certiifcate encryption<br />
-- Create Database<br />
CREATE Database CertEncryptDemo<br />
GO<br />
USE CertEncryptDemo<br />
--<br />
-- Switch to database context<br />
--<br />
-- Create table for data to be encrypted<br />
CREATE Table Customers(<br />
FirstName varchar(30),<br />
LastName varchar(30),<br />
CreditCardNum varbinary(300))<br />
--<br />
-- Create Database Master Key<br />
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '5YtF4$aQ#W4d^W'<br />
--<br />
--** You should backup the Database Master Key immediately after creation! **<br />
--<br />
--Create certificate and use the databse master key to encrypt the private key<br />
CREATE CERTIFICATE Certificate02<br />
WITH SUBJECT = 'Test certificate for encryption',<br />
START_DATE = '1/1/2007',<br />
EXPIRY_DATE = '1/1/2012';<br />
--<br />
-- Populate table with data included encrypted credit card numbers<br />
INSERT INTO Customers Values('Blake', 'Cabbage',<br />
EncryptByCert(Cert_ID('Certificate02'), '342724356361631'))<br />
INSERT INTO Customers Values('Colin', 'Edwareds',<br />
EncryptByCert(Cert_ID('Certificate02'), '4516525615214110'))<br />
INSERT INTO Customers Values('Anoson', 'Monroe',<br />
EncryptByCert(Cert_ID('Certificate02'), '5582858885802510'))<br />
Data Encryption • Chapter 8 241<br />
--<br />
--View the contents of the table<br />
Select * from Customers<br />
--<br />
--View table data including the decrypted plain text credit card numbers<br />
--<br />
SELECT Firstname,LastName, CAST(DecryptByCert(Cert_ID('Certificate02'),<br />
CreditCardNum) AS varchar) as 'CreditCardNum' from customers<br />
--<br />
--Clean-up demo<br />
DROP CERTIFICATE Certificate02;<br />
DROP MASTER KEY;<br />
USE TEMPDB<br />
DROP DATABASE CertEncryptDemo;<br />
--END</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure MS SQL 2005 Database with EFS Encryption</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 05:55:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=340</guid>
		<description><![CDATA[EFS Encryption EFS can be used to encrypt SQL Server 2005 data files and folders. EFS is supported on Windows 2000 and later operating systems with New Technology File Systems (NTFS) formatted drives. EFS uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On Windows 2003 Server and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EFS Encryption</strong></p>
<p>EFS can be used to encrypt <strong>SQL Server 2005</strong> data files and folders. EFS is supported on <strong>Windows 2000</strong> and later operating systems with New Technology File Systems (<strong>NTFS</strong>) formatted drives. <strong>EFS </strong>uses a combination of symmetric and asymmetric methods to provide transparent SQL Server 2005 data encryption. On <strong>Windows 2003 Server</strong> and newer operating systems, EFS by default creates a random <strong>File Encryption Key</strong>, which is a 256-bit AES key to perform data encryption.The File Encryption Key is then itself encrypted with the user’s public key and stored within the encrypted file or folder.</p>
<p><strong>To encrypt SQL Server 2005 data files and folders using EFS, follow these steps:</strong></p>
<p>1. Stop the <strong>SQL Server</strong> service.<br />
2. Log out and log in using the<strong> SQL Server </strong>service account credentials.<br />
3. Right-click on the file or folder to be encrypted and select <strong>Properties | General Tab | Advanced.</strong></p>
<p><span id="more-340"></span><br />
4. Within the Advanced attributes window, select Encrypt contents to secure data.<br />
5. Within the Advanced attributes window, press OK.<br />
6. Within the Properties tab, press OK.<br />
7. If you are encrypting a folder containing subfolders, you will be presented with another window asking if you would like to  encrypt them as well. Press OK.<br />
8. <strong>EFS encrypted files</strong> and folder names should now appear in green within any Windows file explorer window.<br />
9. Restart the <strong>SQL Server</strong> services.</p>
<p>If errors are generated, you may have encrypted the<strong> SQL Serve</strong>r data files using an account that is not linked to the <strong>SQL Server</strong> service account.You can decrypt the data folders by reversing the steps above and trying again. When encrypting individual database files, EFS first creates a plain text copy of the file to be encrypted, encrypts the target file, and then deletes the temporary file.This temporary file is not securely deleted and can be recovered using common data recovery tools. To prevent local file disclosure, you should use a secure data deletion tool to overwrite the areas of disk containing the temporary file. Alternatively, you can simply encrypt the parent folder that contains the database files to ensure any temporary files are also encrypted.</p>
<p><strong>EFS encryption</strong> is beneficial if the database media is stolen or misplaced. When transferring<strong> EFS encrypted</strong> files over the network, Windows first decrypts the file and then transfers the plain text equivalent. Some administrators perform manual backups of database files prior to implementing changes on the database server. If this backup involves copying data files from one server to another, you will effectively be storing an unencrypted copy of your database on the destination server.</p>
<p><strong>Encryption File System Contains Inherit Flaws</strong></p>
<p>On <strong>Windows Server 2003</strong>, EFS uses a strong 256-bit AES key to encrypt data. Under most circumstances, this would be an effective method of encryption; however, this AES key is protected by the user’s public key, which is based on the user’s Windows login password. This ultimately reduces EFS protection to the strength of the user’s Windows password. There are publicly available tools that can successfully decrypt EFS encrypted data by exploiting this flaw. Because of this, EFS should not be used to encrypt sensitive database data.</p>
<p><strong>Working with EFS Encrypted Data</strong></p>
<p>EFS encryption is managed by the operating system, and seamlessly provides file and folder encryption to <strong>SQL Server 2005</strong>. All <strong>SQL Serve</strong>r functions and operations remain unchanged when using this encryption method. Because EFS is handled outside of SQL Server 2005, encryption keys must be backed up separately in addition to your database backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-database-with-efs-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importance and Ways to Secure SQL 2005 Database</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 06:25:04 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=336</guid>
		<description><![CDATA[Why Secure Data in your Windows MSSQL database? Databases often contain sensitive financial, healthcare, and corporate data. As mentioned earlier, data security breaches are occurring at an alarming rate and international legislations have been passed, which set regulations on how organizations must protect this sensitive data. The Payment Card Industry (PCI), Health Insurance Portability and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why Secure Data in your Windows MSSQL database?</strong></p>
<p><strong>Databases </strong>often contain sensitive financial, healthcare, and corporate data. As mentioned earlier, data security breaches are occurring at an alarming rate and international legislations have been passed, which set regulations on how organizations must protect this sensitive data. The<strong> </strong>Payment Card Industry<strong> (PCI)</strong>, Health Insurance Portability and Accountability Act (<strong>HIPAA</strong>), Personal Information Protection and Electronic Documents Act (<strong>PIPEDA</strong>), Gramm-Leach-Bliley Act (<strong>GLBA</strong>), and the <strong>UK Data Protection Act</strong> are just a few of these regulations. Several regulations require that sensitive data be encrypted and that organization’s must identify and report data disclosure or misuse. If these regulations are not followed, organizations can face serious repercussions, ranging from financial penalties to imprisonment of responsible parties. Depending on the nature of your business, the above regulations may not apply, but before you discount the need to encrypt data</p>
<p><span id="more-336"></span>consider that sensitive information can also include corporate information including confidential HR data, trade secrets, patents, designs, or client listings, which, if disclosed to unauthorized individuals, could have a grave impact on your organization. At this point you may be wondering,<strong>“why not just encrypt all data using a secure algorithm?”</strong> instead of determining specifically what data elements require encryption.The answer is that there is a  significant performance impact when encrypting data, as SQL Server must perform authentication, encryption, and decryption functions seamlessly to encrypt and decrypt the data. In addition, there are several other side effects associated with data encryption, which we will touch on later in this chapter. For these reasons, you should use data encryption only when required and only on the required data elements.</p>
<p><strong>Ways to encrypt data in MSSQL 2005:</strong></p>
<p><a title="Configure EFS Encryption" href="http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-2005-databade-with-efs-encryption/" target="_self">EFS Encryption</a><br />
Native SQL Server 2005 Encryption<br />
Using Keys to Encrypt Data<br />
<a title="Encryption using certificate." href="http://www.mywebhostingblog.net/aspnet-web-hosting/encrypt-sql-2005-database-with-certificates/" target="_self">Using Certificates to Encrypt Data</a><br />
Using Pass Phrases to Encrypt Data<br />
Working with Data Encrypted<br />
Indexing Encrypted Data<br />
Replicating Encrypted Data<br />
Symmetric Key Usage Tracking<br />
Replicating Encrypted Stored<br />
Using Endpoint Encryption</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/importance-and-ways-to-secure-sql-2005-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail Enable Mail Server</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/mail-enable-mail-server/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/mail-enable-mail-server/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 04:03:04 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Emails]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[Mail Enable]]></category>
		<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[Mail Transfer Agent]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=136</guid>
		<description><![CDATA[Smooth working of Mail server totally depends upon Mail Enable Mail Transfer Agent , as the name suggest, Mail Enable MTA is a program running on Mail Server responsible for transferring email messages between computers over the Internet. Mail Server works with other programs in collaboration  to make up what we know as Messaging System. [...]]]></description>
			<content:encoded><![CDATA[<p>Smooth working of <strong>Mail server</strong> totally depends upon <strong>Mail Enable Mail Transfer Agent</strong> , as the name suggest, <strong>Mail Enable MTA </strong>is a program running on <strong>Mail Server</strong> responsible for transferring email messages between computers over the Internet.</p>
<p><strong>Mail Server</strong> works with other programs in collaboration  to make up what we know as <strong>Messaging System</strong>. Messaging system must work without any flaws to keep smooth movement of <strong>Inbound and Outbound emails.</strong> <strong>Mail System</strong> uses following protocols to send and receive email messages.</p>
<p><strong>SMTP (Simple Mail Transfer Protocol) &#8211; For Sending emails</strong></p>
<p><strong>POP3 (Post Office Protocol 3) or         -  For Receiving emails.</strong></p>
<p><strong>IMAP (Internet Message Access Protocol)</strong></p>
<p>At any point you found out that emails are not reaching their destination, there are high chances of these emails would get stuck in <strong>Mail Queue</strong>. Only way to release emails from mail queue is to restart mail services. <strong>Restarting</strong> mail services is done from <strong>Mail Server</strong>. Make sure before restarting <strong>mail </strong>service you ask anyone who has good knowledge of doing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/mail-enable-mail-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Secure MS SQL &#8211; BEST PRACTICES</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-best-practices/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-best-practices/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 07:16:50 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[SQL Engine]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=280</guid>
		<description><![CDATA[There are several points that Microsoft suggests before configuring your MS SQL Server. BEST PRACTICES ACCORDING TO MICROSOFT Install only those components that you will use immediately. Microsoft recommends that you create a list of components that you will be using, and only enable those. If the need arises, you can install the additional components [...]]]></description>
			<content:encoded><![CDATA[<p>There are several points that Microsoft suggests before configuring your MS SQL Server.</p>
<p><strong>BEST PRACTICES ACCORDING TO MICROSOFT</strong></p>
<ul>
<li> Install only those components that you will use immediately.<strong> Microsoft recommends</strong> that you create a list of components that you will be using, and only enable those. If the need arises, you can install the additional components at that time. The components in a<strong> SQL Server</strong> installation are the <strong>Database</strong> <strong>Engine</strong>, Analysis Services Engine, <strong>Reporting Services</strong>, Integration Services, Notification Services, and Documents and Samples.<span id="more-280"></span></li>
</ul>
<ul>
<li> Enable only the optional features you will use, and review optional feature usage before doing an in-place upgrade and disable unneeded features. Microsoft recommends that you create a list of the optional features that you will use, and only turn those on. If this is an existing SQL Server that is being upgraded, they recommend creating the same list, and disabling any optional features not on the list. These optional features are CLR Integration, OLE Automation, remote use of a dedicated administrator connection, Database Mail and<strong> SQL Mail,</strong> <strong>OpenRowset </strong>and <strong>OpenDataSource </strong>functions, <strong>SQL Server </strong>Web Assistant, and xp_cmdshell availability.</li>
</ul>
<ul>
<li> Develop a policy with respect to permitted network connectivity choices and for the usage of optional features. <strong>Microsoft </strong>recommends defining policies that would be company wide on Connectivity Choices and the use of optional features. They also recommend using <strong>SQL Server Surface Area Configuration</strong> to standardize this policy and documenting exceptions to the policy on a perinstance basis.</li>
</ul>
<ul>
<li> Turn off unneeded services by setting the service to either Manual startup or Disabled. <strong>Microsoft</strong> recommends going into the service management area and setting all services that you will not be using.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-ms-sql-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between SQL Server 2005 and SQL Server 2008</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/difference-between-sql-server-2005-and-sql-server-2008/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/difference-between-sql-server-2005-and-sql-server-2008/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 14:55:49 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Difference]]></category>
		<category><![CDATA[Microsoft SQL]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=455</guid>
		<description><![CDATA[MS SQL 2005 Server was released after 5 servers of it previous SQL version, MS SQL 2000, Hence it required allot to revisions to cope up with the current windows development environment. Therefore MS SQL 2005 SP2 had major changes in it, with too many performances and security fixes. Microsoft could not add few revisions [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-456 alignleft" title="difference-between-2005-2008" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/difference-between-2005-2008.jpg" alt="difference between 2005 2008 Difference between SQL Server 2005 and SQL Server 2008" width="200" height="252" /></p>
<p><strong>MS SQL 2005 Server</strong> was released after 5 servers of it previous SQL version, <strong>MS SQL 2000</strong>, Hence it required allot to revisions to cope up with the current <strong>windows </strong>development environment. Therefore <strong>MS SQL 2005 SP2</strong> had major changes in it, with too many performances and security fixes. Microsoft could not add few revisions due to its basic development structure however they had all the scope to introduce them in SQL 2008 release. And indeed, MS <strong>SQL 2008</strong> has many installation as well as <strong>performance </strong>fixes being applied to it and allowing <strong>Windows</strong> Administrators to have full control on <strong>SQL </strong>activities. The biggest advantage of <strong>SQL 2008</strong> over <strong>SQL 2005</strong> is the ability to manage and maintain server performance. <strong>SQL 2008</strong> does not require too much resource which is the best deal for today’s <strong>Shared Hosting</strong> environment. Also an upper hand to whose to do not want to invest too much on hardware of their <strong>dedicated servers</strong> just to run <strong>SQL server</strong> on it.</p>
<p><span id="more-455"></span></p>
<p><img class="alignright size-medium wp-image-458" title="difference-between-sql-server1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/difference-between-sql-server1-235x300.jpg" alt="difference between sql server1 235x300 Difference between SQL Server 2005 and SQL Server 2008" width="159" height="203" />I have tried to gather the major improvement introduced by <strong>Microsoft on SQL 2008</strong> from Internet which is an advantage over <strong>SQL 2005</strong> however it all depends on what features are useful to you in the development of your ASP .NET applications. But switching to <strong>Microsoft SQL 2008</strong> is definitely going to improve the performance even if you don&#8217;t use any of the below feature. And not to forget that with the release of SQL 2008, Microsoft will announce<em><strong> &#8220;End Of Life&#8221;</strong></em> for <strong>SQL 2000</strong> version, which will mean that there won&#8217;t be any official support or update release for SQL 2000.</p>
<p><strong>Major difference between SQL 2005 and SQL 2008.</strong></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-463" title="sql 2008 dedicated hosting" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/sql-2008-hosting.png" alt="sql 2008 hosting Difference between SQL Server 2005 and SQL Server 2008" width="363" height="75" /></p>
<p>* <em>Easy Upgrades:</em> Version <strong>upgrades </strong>are now very easy and effective with <strong>SQL 2008</strong>.<br />
* <em>Resource Restriction Governor:</em> We set a restriction on a users or groups from consuming high resources. This is a very good feature that can be used on <strong>Windows shared serve</strong>r with SQL database to maintain the performance.<br />
* <em>Dates and Times settings: </em>New data types such as: Date, Time, Date Time Offset has been introduced.<br />
* <em>Improved Full Text Search:</em> Ability to backup Native Indexes and also thesaurus them as metadata.<br />
* <em>External Key Management:</em> This unique can store Keys separately and not with the data.<br />
* <em>Improved SQL Server Analysis Service:</em> It now has improved Stacks and computes block faster.<br />
* <em>Improved Installation:</em> Microsoft has added an option where you can uninstall Disk images and service packs.<br />
* <em>Data Synchronizing:</em> A Development of databases used in applications that frequently get disconnected.<br />
* <em>Transparent Data Encrypts:</em> It has the ability to encrypt full <strong>SQL database </strong>with different encryption Methods.</p>
<p>* <em>SQL Server Integration Service:</em> SQL 2008 Server has improved multiprocessor support and faster lookups in compare to SQL 2005.<br />
* <em>Change Data Capture:</em> Allows all changes to be captured and queried. (Enterprise). Also allows us to get detailed information on what changes has happened to which rows after a specific version.<br />
* <em><strong>LINQ:</strong></em> A Development query language for accessing multiple type of data like XML and SQL at the same time.<br />
* <em>Hot Plug CPU:</em> With this feature to an add CPUs on fly for your SQL server to use.<br />
* <em><strong>Microsoft Office 2007 integration:</strong></em> One can use MS OFFICE as an SSRS template, like SSRS to WORD.<br />
* <em>Spatial Data types:</em> Data types for storing Longitude, Latitude and GPS entry of a particular database.<br />
* <em><strong>MERGE:</strong></em> A new TSQL command as a combination Update, Insert and Delete.<br />
* <em><strong>Encrypted Backups: </strong></em>We can execute it at the time running backups to prevent tampering from external resource.<br />
* <em><strong>Data Compression:</strong></em> This feature is different as it allows us to manage data compression at table level to enhance performance.<br />
* <em>Dynamic Development:</em> Latest Visual Studio and ADO options along with ASP .Net 3.<br />
* <em>Reporting Server Performance: </em>Unlike in SQL 2005 we can set threshold on Reporting server for memory management.<br />
* <em>Performance Studio:</em> It is a Gallery that has collection of monitoring tools enhanced performance.<br />
* <em><strong>Audits:</strong></em> A very power feature for monitoring the data access of your SQL database.<br />
* <em><strong>Table Value Parameters:</strong></em> SQL 2008 database has ability to insert entire table into a stored procedure.<br />
* <em>Entity Database Services:</em> (LOB) Line Of Business framework and (eSQL) Entity Query Language.</p>
<p>No doubt that <strong>Microsoft </strong>has improved all the features that has been used by <strong>hosting services</strong>. Even <strong>SQL Cluster</strong> in <strong>version 2008</strong> has few major advantages since every one in today world wants to have their site up all the time with<strong> 100% uptime</strong>. I hope I get some time to write on &#8220;<em><strong>MS SQL 2008 Clustering..</strong></em>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/difference-between-sql-server-2005-and-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup MySQL using VBS scripts</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 16:13:26 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=441</guid>
		<description><![CDATA[I have seen so many people searching ASP or ASP .NET scripts to backup their MySQL databases. Not only this but my Blog has been getting to many hits for the search term &#8220;backup mysql asp&#8221;. After seeing the need of so many people for the script I decided to write a VBS script to [...]]]></description>
			<content:encoded><![CDATA[<p>I have seen so many people searching <strong>ASP </strong>or <strong>ASP .NET</strong> scripts to backup their <strong>MySQL databases</strong>. Not only this but my <strong>Blog </strong>has been getting to many hits for the search term <em><strong>&#8220;backup mysql asp&#8221;</strong></em>. After seeing the need of so many people for the script I decided to write a VBS script to backup all or single <strong>MySQL database</strong> on <strong>Windows</strong> <strong>server</strong>. I am not very good at <strong>ASP </strong>so I didn&#8217;t write the script in ASP or<strong> ASP .NET</strong> but one can convert this script in either <strong>ASP </strong>or <strong>ASP .NET</strong>, it should not be a huge problem I suppose.</p>
<p style="text-align: center;"><img class="size-full wp-image-443 aligncenter" title="backup mysql VBS" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/backup-mysql-asp.jpg" alt="backup mysql asp Backup MySQL using VBS scripts" width="259" height="92" /><span id="more-441"></span></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-442" title="backup-mysql-asp-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/backup-mysql-asp-1.jpg" alt="backup mysql asp 1 Backup MySQL using VBS scripts" width="278" height="121" /></p>
<p>Please make sure of the following before you configure the script:</p>
<ul>
<li>The user that is running the script must have execute permissions on <code>cscript</code> in system32</li>
<li>The user that is running the script must have write permissions folder that is going to store the backup file.</li>
<li>The user that is running the script must have execute permissions on <code>mysqldump.exe</code> in Mysqlbin</li>
<li>If you running this script in browser then your web user will need the above permissions.</li>
</ul>
<p>So here is the script:</p>
<p><em><strong>backup-mysql-database.vbs</strong></em></p>
<p><code>Option Explicit<br />
Dim backup_dir, num_days, user, password, database, arguments, backup_file<br />
Dim oShell, oFS, oDrive, nResults, sqldump</code></p>
<p><code>backup_dir = "C:MysqlBackups"<br />
user = "xxxxxxxx"<br />
password = "yyyyyyyy"<br />
database = "zzzzzzzz"<br />
sqldump = "C:Mysqlbinmysqldump.exe"</code></p>
<p><code>backup_file = backup_dir &amp; database &amp; ".sql"<br />
arguments = "--user=" &amp; user &amp; " --password=" &amp; password &amp; " " &amp; database &amp; " &gt; " &amp; backup_file<br />
arguments = sqldump &amp; " " &amp; arguments<br />
WScript.Echo(arguments1)<br />
</code><br />
<code>Set oShell = CreateObject("WScript.Shell")</code></p>
<p><code>WScript.Echo("Creating backup file " &amp; backup_file)<br />
nResults = oShell.Run ("cmd /C" &amp; arguments, 1, TRUE)<br />
WScript.Echo(nResults)</code></p>
<p><code>Set oShell = Nothing</code></p>
<p>The following variable will be needed to be defined as per your need:</p>
<p><em><strong>backup_dir </strong></em>= Should have the path to the directory that you want to save you backup file in.<br />
<em><strong>user</strong></em> = Database user name that has full privileges over the <strong>database </strong>you want to backup.<br />
<em><strong>password</strong></em> = <strong>Password </strong>of the database user.<br />
<em><strong>database</strong></em> = Name of the database that you want to backup<br />
<em><strong>sqldump </strong></em>= Path to mysqldump.exe, normally this is stored in <strong>MySQLbin</strong> directory.</p>
<p>To backup all database you can ignore the database variable and replace the first argument command with:<br />
<code><br />
arguments = "--user=" &amp; user &amp; " --password=" &amp; password &amp; " --all-databases --quick<br />
--result-file=" &amp; backup_file</code></p>
<p>Now you can run the command below to execute the script on Windows server:</p>
<p><code>cscript c:myscriptsbackup-mysql-database.vbs</code></p>
<p>You can also <strong>schedule </strong>the above command to run on sceduled timining to backup the <strong>MySQL databases.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows Error Reporting</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 20:28:02 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[appcompat.txt]]></category>
		<category><![CDATA[Data Execution Prevention]]></category>
		<category><![CDATA[dump files]]></category>
		<category><![CDATA[Hard Disk]]></category>
		<category><![CDATA[HDMP]]></category>
		<category><![CDATA[MDMP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[w3wp.exe.mdmp]]></category>
		<category><![CDATA[Windows Error Reporting]]></category>
		<category><![CDATA[Windows Registry]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=248</guid>
		<description><![CDATA[C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\w3wp.exe.mdmp C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\appcompat.txt Above error pop ups when Error Reporting is enabled on your system and w3wp.exe faces an error. Windows Error Reporting increases Hard Disk space , by adding above pop ups in two different dump files i.e. HDMP and MDMP HDMP (Heap Dump) &#8211; Uncompressed error dump file generated by Windows when a program [...]]]></description>
			<content:encoded><![CDATA[<p><strong>C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\w3wp.exe.mdmp</strong></p>
<p><strong>C:\DOCUME~1\USER~1\LOCALS~1\Temp\WER8bd7.dir00\appcompat.txt</strong></p>
<p>Above error pop ups when <strong>Error Reporting</strong> is enabled on your <strong>system</strong> and <strong>w3wp.exe</strong> faces an error.<br />
<strong>Windows Error Reporting</strong> increases <strong>Hard Disk</strong> space , by adding above pop ups in two different <strong>dump files</strong> i.e. <strong>HDMP</strong> and <strong>MDMP</strong><br />
HDMP (Heap Dump) &#8211; Uncompressed error dump file generated by Windows when a program has an error or crashes.<br />
<strong>MDMP (Mini Dump)</strong> &#8211; Compressed Heap Dump files are saved as Mini dump (MDMP) files and may be sent to <strong>Microsoft</strong> as part of an error reporting process.</p>
<p><span id="more-248"></span>Windows Error Reporting settings are stored in <strong>Windows Registry</strong> at <strong>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting</strong></p>
<p>However, if you do not choose to send files to Microsoft. These dump files will gradually go on clogging up your system disk space.<br />
To avoid this you have to fix error in application and delete dump files present at<br />
<strong>C:\WINDOWS\pchealth\ERRORREP\UserDumps</strong></p>
<p>Read further for Customizing or disabling <strong>Windows Error Reportin. </strong></p>
<p><strong>Windows Error Reporting</strong> can be kept disabled or can be customize as per requirement.</p>
<p>On your <strong>Windows System</strong> &gt;&gt;&gt; Right Click on My Computer &gt;&gt;&gt; Click on Properties &gt;&gt;&gt; Click on Advanced &gt;&gt;&gt; Click on Error Reporting &gt;&gt;&gt; You can Enable or Disable Error Reporting from here &gt;&gt; if you click on Enable &gt;&gt;&gt; Click on Choose Programs for customizing.</p>
<p>To add <strong>w3wp.exe</strong> in exception list without Disabling <strong>Error Reporting</strong> navigate yourself as shown below : -</p>
<p>On your <strong>Windows System</strong> &gt;&gt;&gt; Right click on My Computer &gt;&gt;&gt;  Click on Properties &gt;&gt;&gt; Click on Advanced &gt;&gt;&gt; Performance &gt;&gt;&gt; Click on Settings &gt;&gt;&gt; Click on <strong>Data<br />
Execution Prevention</strong> &gt;&gt;&gt; Turn on DEP for all programs and<br />
services except those I select &gt;&gt;&gt; Add <strong>w3wp.exe</strong> process in exception list<br />
(Reboot not required)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/windows-error-reporting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install phpMyAdmin on Windows</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 01:19:44 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Windows NT]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=210</guid>
		<description><![CDATA[These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP. For steps on Linux refer the link below: How to install PHPMyAdmin on Linux How to install phpMyAdmin 2.11 on Windows Desktop and Server Here are steps that will help you installed PHPMyAdmin on a Windows server. [...]]]></description>
			<content:encoded><![CDATA[<p>These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP.</p>
<p>For steps on Linux refer the link below:</p>
<p><strong><a title="Install PHPMyAdmin on Linux" href="http://www.eukhost.com/forums/f15/how-install-phpmyadmin-pma-linux-vps-dedicated-server-4234/" target="_blank">How to install PHPMyAdmin on Linux</a></strong></p>
<p><strong>How to install phpMyAdmin 2.11 on Windows Desktop and Server</strong></p>
<p>Here are steps that will help you installed <strong>PHPMyAdmin</strong> on a Windows server.</p>
<p><strong>REQUIREMENTS:</strong></p>
<p>&gt;&gt; PHP <strong>4.3/4.4/5.1</strong><br />
&gt;&gt; MySQL <strong>4.0/4.1/5.0</strong></p>
<p><strong>DOWNLOAD</strong>:</p>
<p>This installation was tested on phpMyAdmin-2.11.1<br />
You can select the file from <a title="PHPMyAdmin Downloads" href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank">PHPMyAdmin Downloads</a></p>
<p><span id="more-210"></span></p>
<p><strong>CONFIGURATION</strong>:</p>
<p>Configuration that needs to be noted, the one below are the one we have chozen. They might be different on your server:</p>
<p>Installation path: C:\www\<strong>phpMyAdmin </strong>(If you have Apache on your server then place out side of webroot of Apache)<br />
Apache webroot : C:\www\webroot<br />
My-SQL path : C:\www\mysql\bin<br />
Access phpMyAdmin as : http://192.168.1.52/<strong>phpMyAdmin</strong>/</p>
<p><strong>INSTALLING PHPMyAdmin:</strong></p>
<p>1. Unpack the downloaded file <strong>phpMyAdmin</strong>-2.11.1.zip under the directory C:\www<br />
2. Rename directory C:\www\<strong>phpMyAdmin</strong>-2.11.1 to C:\www\phpMyAdmin<br />
3. Make a copy of C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php<br />
4. Open the default configuration file of <strong>PHPMyAdmin </strong>C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php and make following changes:</p>
<p>a. Find:</p>
<p><code>$cfg['PmaAbsoluteUri'] = '';</code></p>
<p>Put the full URL of PHPMyAdmin in the quotes, you can replace the IP address with the IP address of your server or your domain name:</p>
<p><code>$cfg['PmaAbsoluteUri'] = 'http://192.168.1.52/phpMyAdmin/';</code></p>
<p>b. PHPMyAdmin can also try to auto-detect the proper value for the above directive if it is left as it is [BLANK] and the below line is changed to &#8216;TRUE&#8217;:</p>
<p><code>$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;</code></p>
<p>c. Authentication Method:</p>
<p>&#8211; For single-user (root or trusted) environment:</p>
<p>&#8211; Method 1 would be to prompt client for MySQL user/password, this option will only work if your database is not accessed by other users:</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code></p>
<p>&#8211; Method 2 is to store MySQL user/password under config.ini.php file.</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'config';</code><br />
<code>$cfg['Servers'][$i]['user'] = 'root';</code><br />
<code>$cfg['Servers'][$i]['password'] = 'root-password';</code></p>
<p>Please replace the user and password with the <strong>administrator </strong>user and password of your<strong> MySQL server</strong>.</p>
<p>d. Authentication Method &#8212; for multi-user (untrusted) environment, this will allow to give access to your developers or clients if it is a shared server in hosting environment.<br />
This step is also required to for enabling phpMyAdmin&#8217;s relational features</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code><br />
<code>$cfg['Servers'][$i]['user'] = '';</code><br />
<code>$cfg['Servers'][$i]['password'] = '';</code><br />
<code>$cfg['Servers'][$i]['controluser'] = 'pma';</code><br />
<code>$cfg['Servers'][$i]['controlpass'] = 'pmapass';</code></p>
<p>Save the password: pmapass</p>
<p>e. Now we will have tp create MySQL controluser user &#8216;pma@localhost&#8217; with password &#8216;pmapass&#8217;, and with the proper permissions to the user:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';</code><br />
Note the SQL password</p>
<p><code>mysql&gt; GRANT SELECT (Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv) ON mysql.user TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.db TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.host TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost';</code><br />
<code>mysql&gt; quit</code></p>
<p><strong>CONFIGURING APACHE 2.0</strong></p>
<p>a. If you run Apache as the webserver then you will follow the steps below:</p>
<p>Open file C:\www\Apache2\conf\httpd.conf to edit it and uncomment line (remove the beginning character &#8216;#&#8217;)<br />
I would suggest you to backup the http.conf file incase you have messed it up.</p>
<p><code>LoadModule alias_module modules/mod_alias.so</code></p>
<p>b. Make sure directive &#8216;DirectoryIndex&#8217; contains &#8216;index.php&#8217; http.conf</p>
<p><code>DirectoryIndex index.html index.html.var index.php</code></p>
<p>c. Then add the following lines:</p>
<p><code><br />
Alias /phpMyAdmin "C:/www/phpMyAdmin"<br />
</code></p>
<p><code><br />
Options None<br />
AllowOverride None<br />
order deny,allow<br />
deny from all<br />
allow from 127.0.0.1<br />
</code></p>
<p>Do not forget to restart Apache once you have made the above changes and have saved the http.conf file.</p>
<p><strong>CONFIGURING IIS6.0</strong></p>
<p>a. Open IIS Webserver from START &gt;&gt; RUN: inetmgr<br />
b. In IIS manager expand SERVER_NAME &gt;&gt; Web Sites and select Default WebSite.<br />
c. In the Right pane right click in white soace and select New &gt;&gt; Virtual Directory.<br />
d. In the Virtual Directory creation Wizard, click Next.<br />
e. Give directory Alias (Name) as PHPMyadmin and click Next.<br />
f. Click on Browse button and navigate to &#8220;C:\www\phpMyAdmin&#8221;<br />
e. Select &#8220;Read&#8221;, &#8220;Run Script&#8221; &amp; &#8220;Execute&#8221; and click Next.<br />
g. Now Right click on the PHPMyAdmin Virtual directory and select permissions.<br />
h. Give &#8220;Read &amp; Execute&#8221; permissions to IUSR_ and inherit the permissions.<br />
i. Right click on the PHPMyAdmin Virtual directory &gt;&gt; Properties &gt;&gt; Virtual Directory &gt;&gt; Configuration and map .php extention to PHP executable.</p>
<p><strong>OPTIONAL CONFIGURATIONS:</strong></p>
<p>Configuration for PHP v5:</p>
<p>These steps are only required if you want to use PHP5 for PHPMyAdmin, in PHP4 PHP extension php_mysql.dll is build in and extension php_mysqli is not supported.:</p>
<p>a. Edit file %SYSTEMROOT%\php.ini, under the &#8216;Dynamic Extensions&#8217; Section:</p>
<p>Uncomment line:<br />
<code>;extension=php_mbstring.dll</code></p>
<p>If using MySQL v4.0 : Uncomment line<br />
<code>;extension=php_mysql.dll</code></p>
<p>If using MySQL v4.1 : Insert line<br />
<code>extension=php_mysqli.dll</code></p>
<p>Edit config.inc.php and update server extension line:<br />
<code>$cfg['Servers'][$i]['extension'] = 'mysqli';</code></p>
<p>Enable phpMyAdmin&#8217;s Relational Features:</p>
<p>Please make a note that these steps are required for &#8220;Authentication Method &#8212; for multi-user (untrusted) environment&#8221;</p>
<p>Edit phpMyAdmin&#8217;s configuration file C:\www\phpMyAdmin\config.inc.php:</p>
<p><code>$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';</code><br />
<code>$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';</code><br />
<code>$cfg['Servers'][$i]['relation'] = 'pma_relation';</code><br />
<code>$cfg['Servers'][$i]['table_info'] = 'pma_table_info';</code><br />
<code>$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';</code><br />
<code>$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';</code><br />
<code>$cfg['Servers'][$i]['column_info'] = 'pma_column_info';</code><br />
<code>$cfg['Servers'][$i]['history'] = 'pma_history';</code><br />
<code>$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';</code></p>
<p>Now Run phpMyAdmin&#8217;s sql script file &#8216;create_tables.sql&#8217;:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; source C:\www\phpMyAdmin\scripts\create_tables.sql</code><br />
<code>mysql&gt; quit</code></p>
<p>That is it, you should be done with PHPMyAdmin installation on Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fix: “Generic Host for Win32 Process” and “svchost.exe”.</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-fix-%e2%80%9cgeneric-host-for-win32-process%e2%80%9d-and-%e2%80%9csvchostexe%e2%80%9d-errors/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-fix-%e2%80%9cgeneric-host-for-win32-process%e2%80%9d-and-%e2%80%9csvchostexe%e2%80%9d-errors/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 18:58:24 +0000</pubDate>
		<dc:creator>Rock</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=208</guid>
		<description><![CDATA[close Port 445: Click Start &#62;&#62; Run, to open the Run dialog box Here, type regedit to open the registry. Navigate to the following registry key &#8211; HKEY_LOCAL_MACHINE &#62;&#62; System &#62;&#62; CurrentControlSet &#62;&#62; Services &#62;&#62; NetBT &#62;&#62; Parameters On the right-hand pane find the option TransportBindName. Double click on TransportBindName and delete the existing default [...]]]></description>
			<content:encoded><![CDATA[<p><strong>close Port 445:</strong></p>
<ul>
<li><span>Click </span><strong>Start </strong>&gt;&gt; <strong>Run</strong>, to open the Run dialog box</li>
<li> Here, type <strong>regedit </strong><span>to open the registry. </span></li>
<li> Navigate to the following registry key &#8211; <strong>HKEY_LOCAL_MACHINE</strong> &gt;&gt; <strong>System </strong>&gt;&gt; <strong>CurrentControlSet </strong>&gt;&gt; <strong>Services </strong>&gt;&gt; <strong>NetBT </strong>&gt;&gt; <strong>Parameters </strong></li>
<li> On the right-hand pane find the option <strong>TransportBindName</strong>.</li>
<li><span> Double <span><br />
<input name="IL_MARKER" type="hidden" />click</span> on </span><strong>TransportBindName </strong>and <strong>delete </strong>the existing default value.</li>
<li><span><span><br />
<input name="IL_MARKER" type="hidden" />click</span> Ok</span></li>
</ul>
<p>From the above, it is clear, that you have closed Port 445 by giving a blank value to <strong>TransportBindName </strong>for <strong>NetBT </strong>services.</p>
<p><strong>close Port 135:</strong></p>
<ul>
<li> Click <strong>Start </strong>&gt;&gt; <strong>Run</strong>, to open the Run dialog box</li>
<li> Here, type <strong>regedit </strong>to open the registry</li>
<li> Navigate to the following registry key &#8211; <strong>HKEY_LOCAL_MACHINE</strong> &gt;&gt; <strong>software </strong>&gt;&gt; <strong>microsoft </strong>&gt;&gt; <strong>Ole </strong></li>
<li> On thee right hand window pane find an option called <strong>EnableDCOM </strong></li>
<li> Double-click <strong>EnableDCOM </strong>and change the value from <strong>Y </strong>to <strong>N </strong></li>
<li>click Ok</li>
<li> Close the Registry Editor and <strong>restart </strong>your computer</li>
</ul>
<p>These steps will only work for a standalone servers. Any serveres that are in a cluster state such as <strong>Active Directory, SQL failover cluster, Network Load Balancing [NLB] or Windows Replication service</strong> that <strong>NEVER-EVER</strong> follow these steps as it will simply diable port 135 which is used my <strong>Distributed File System [DFS]</strong> for the servers to comunicate with each other. Disabling it will just wont allow the servers to communicate and the services will fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-fix-%e2%80%9cgeneric-host-for-win32-process%e2%80%9d-and-%e2%80%9csvchostexe%e2%80%9d-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure your MS SQL Database Connection String</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 17:51:42 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Connection string]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=197</guid>
		<description><![CDATA[Ways to secure your MS SQL connection string in ASP .NET. We have seen allot of people looking to have the best option to secure the connection string in their ASP .NET code to connect the MS SQL database since it contains the username and password of their database. It is very important to use [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ways to secure your MS SQL connection string in ASP .NET.</strong></p>
<p>We have seen allot of people looking to have the best option to secure the connection string in their <strong>ASP .NET</strong> code to connect the <strong>MS SQL database</strong> since it contains the username and password of their database. It is very important to use a secure method for corporate clients and those who save Credit Card details in their MS SQL database. Or they will easily get hacked and all the important data will be exploited by the hacker. And also for those who store important data in MSSQL.</p>
<p>Here are the list of methods that can be used to secure your<strong> MS SQL connection string</strong> in your<strong> ASP.NET</strong> application.</p>
<p><strong>METHODS:</strong></p>
<p><strong>1. Using a DSN connection string:</strong></p>
<p><span id="more-197"></span></p>
<p>If you have the administrator users access to your Windows Server or use a control panel like Plesk then you can create a <strong>DSN </strong>with <strong>ODBC </strong>connector that stores the password of your database along with its name.</p>
<p>You will have to go to<strong> Start &gt;&gt; Administrative Tools &gt;&gt; Data Sources (ODBC) </strong>on your Windows Server with an account that has administrative privileges.</p>
<p>Or if you use a hosting control panel like Plesk that you can create the DSN from the control panel itself.</p>
<p>Once you have created the DNS you will have to mention it in your code as:</p>
<p><code>oConn.Open "DSN=mySystemDSN"</code></p>
<p><strong>2. Store your connection string either in web.config or global.asa:</strong></p>
<p>It is safe to have connection string stored in either web.config or global.asa, since IIS does not allow these files to be accessed from the browser. But it is recommended to enable custom errors in web.config or else the browser just displays the exact exact in the event of an error.</p>
<p>An example of web.config would be:</p>
<p><code><br />
</code></p>
<p><strong>3. Encrypt your connection String stored in Web.config.</strong></p>
<p>To make the connection string more secure you can encrypt your string if you application is written in ASP .NET 2 as this only possible with the new feature in asp.net 2.0 through the config API.</p>
<p>Steps to Encrypt your connection string in web.config:</p>
<p><strong>&#8211; Create a connectionstring section in web.config :- </strong></p>
<p><strong>&#8211; Run the command below:</strong></p>
<p><code>aspnet_regiis –pe -app optionally you can provide the machine or user store.</code></p>
<p><strong>&#8211; Get the connection string:- </strong></p>
<p><code>Response.Write(ConfigurationManager.ConnectionStrings</code></p>
<p><code>["Myconnstr"].connectionString.ToString());</code></p>
<p><strong>&#8211; You can also encrypt:</strong></p>
<p><strong>&#8211; To decrypt the connection string use aspnet_regiis –pd with the same parameters.<br />
</strong></p>
<p><strong>&#8211; There are more option available, such as:</strong></p>
<p>aspnet_regiis –pef<br />
aspnet_regiis -pdf</p>
<p><strong>4. Save the connection string in the Windows registry:</strong></p>
<p>You can also save the connection string in the windows registry, the only problem here is you have to give appropriate permissions on the registry so that your web user is able to read the data fron the registry:</p>
<p><strong>Procedure to follow:</strong></p>
<p>Add a registry key for your application under SOFTWARE/[YOUR_COMPANY]/[YOUR_APP]<br />
Add a string value for ConnectionString<br />
Teach your ConnectionFactory to crack open the appropriate registry key (in a static constructor, not every page load).<br />
Export the registry info as a .reg file, add it to source control, modify and apply it as necessary to set up additional machines.</p>
<p>You will also have to make sure that the user have appropriate rights on the register to read the data.<br />
<strong><br />
5. Save your connection string in a DLL.</strong></p>
<p>You can also save the connection sting the to a DLL using Visual Studio but this includes few disadvantages like, you will gave to decrypt the DLL to make any changes in the connection string and then again encrypt it. This makes things very complicated for you to manage your applications and specially when you have a shared hosting package.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/secure-mssql-database-connection-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable SQL 2005 Remote Connections</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/enable-sql-2005-remote-connections/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/enable-sql-2005-remote-connections/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:53:44 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[Browser service]]></category>
		<category><![CDATA[remote connection]]></category>
		<category><![CDATA[Windows firewall]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=33</guid>
		<description><![CDATA[Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition You must enable remote connections for each instance of SQL Server 2005 that you want to connect to from a remote computer. To do this, follow these steps: 1.    Click Start, point to Programs, point to Microsoft SQL Server 2005, point [...]]]></description>
			<content:encoded><![CDATA[<h3 id="tocHeadRef">Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition</h3>
<p><script type="text/javascript"><!--
loadTOCNode(2, 'moreinformation');
// --></script>You must enable <strong>remote connections</strong> for each instance of <strong>SQL Server 2005</strong> that you want to connect to from a<strong> remote computer</strong>. To do this, follow these steps:</p>
<p>1.    Click Start, point to Programs, point to<strong> Microsoft SQL Server 2005</strong>, point to Configuration Tools, and then click <strong>MS SQL Server</strong> Surface Area Configuration.<br />
2.    On the <strong>MS SQL Server 2005</strong> Surface Area Configuration page, click Surface Area Configuration for Services and Connections.<br />
3.    On the <strong>Surface Area Configuration</strong> for Services and Connections page, expand <strong>Database </strong>Engine, click <strong>Remote Connections</strong>, click Local and remote connections, click the appropriate protocol to enable for your environment, and then click Apply.</p>
<p>Note Click OK when you receive the following message:<br />
Changes to Connection Settings will not take effect until you restart the <strong>Database </strong>Engine service.<br />
4.    On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Service, click Stop, wait until the <strong>MSSQLSERVER </strong>service stops, and then click Start to restart the <strong>MSSQLSERVER </strong>service.</p>
<h3 id="tocHeadRef">Enable the SQL Server Browser service</h3>
<p><script type="text/javascript"><!--
loadTOCNode(2, 'moreinformation');
// --></script>If you are running <strong>MS SQL Server 2005</strong> by using an <strong>instance name</strong> and you are not using a specific <strong>TCP/IP</strong> port number in your connection string, you must enable the <strong>SQL Server Browser </strong>service to allow for <strong>remote connections</strong>. For example,<strong> MS SQL Server 2005 Express</strong> is installed with a default instance name of <var>Computer Name</var>\SQLEXPRESS. You are only required to enable the SQL Server Browser service one time, regardless of how many instances of <strong>SQL Server 2005</strong> you are running. To enable the <strong>MS SQL Server </strong>Browser service, follow these steps.</p>
<p><span id="more-33"></span></p>
<p><strong>Important</strong> These steps may increase your security risk. These steps may also make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to, or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you choose to implement this process, take any appropriate additional steps to help protect your system. We recommend that you use this process only if you really require this process.</p>
<p>1.    Click Start, point to Programs, point to <strong>Microsoft SQL Server 2005</strong>, point to Configuration Tools, and then click <strong>SQL Server Surface Ar</strong>ea Configuration.<br />
2.    On the <strong>MS SQL Server 2005</strong> Surface Area Configuration page, click Surface Area Configuration for Services and Connections.<br />
3.    On the Surface Area Configuration for Services and Connections page, click <strong>SQL Server Browser</strong>, click Automatic for Startup type, and then click Apply.</p>
<p>Note When you click the Automatic option, the <strong>SQL Server Browser service</strong> starts automatically every time that you start <strong>Microsoft Windows</strong>.<br />
4.    Click Start, and then click OK.</p>
<p><strong>Note</strong> When you run the <strong>MS SQL Server</strong> Browser service on a computer, the computer displays the instance names and the connection information for each instance of SQL Server that is running on the computer. This risk can be reduced by not enabling the SQL Server Browser service and by connecting to the instance of SQL Server directly through an assigned TCP port. Connecting directly to an instance of <strong>SQL Server </strong>through a TCP port is beyond the scope of this article. For more information about the SQL Server Browser server and connecting to an instance of SQL Server, see the following topics in SQL Server Books Online:</p>
<p><strong>•    SQL Server Browser Service<br />
•    Connecting to the SQL Server Database Engine<br />
•    Client Network Configuration</strong></p>
<h3 id="tocHeadRef">Create exceptions in Windows Firewall</h3>
<p><script type="text/javascript"><!--
loadTOCNode(2, 'moreinformation');
// --></script>These steps apply to the version of <strong>Windows Firewall</strong> that is included in <strong>Windows XP</strong> <strong>Service Pack 2 (SP2) </strong>and in <strong>Windows Server 2003</strong>. If you are using a different firewall system, see your <strong>firewall</strong> documentation for more information.</p>
<p>If you are running a firewall on the computer that is running <strong>SQL Server 2005</strong>, external connections to <strong>SQL Server 2005 </strong>will be blocked unless <strong>SQL Server 2005</strong> and the<strong> SQL Server Browser service</strong> can communicate through the <strong>firewall</strong>. You must create an exception for each instance of <strong>SQL Server 2005</strong> that you want to accept remote connections and an exception for the <strong>SQL Server Browser service</strong>.</p>
<p><strong>MS SQL Server 2005</strong> uses an <strong>instance </strong>ID as part of the path when you install its program files. To create an exception for each instance of <strong>MS SQL Server</strong>, you must identify the correct instance ID. To obtain an instance ID, follow these steps:</p>
<p>1.    Click Start, point to Programs, point to <strong>Microsoft SQL Server 2005</strong>, point to Configuration <strong>Tools</strong>, and then click <strong>SQL Server</strong> Configuration Manager.<br />
2.    In <strong>SQL Serve</strong>r Configuration Manager, click the SQL Server Browser service in the right pane, right-click the instance name in the main window, and then click Properties.<br />
3.    On the <strong>SQL Server </strong>Browser Properties page, click the Advanced tab, locate the instance ID in the property list, and then click OK.</p>
<p>To open Windows Firewall, click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, type <span class="userInput">firewall.cpl</span>, and then click <strong class="uiterm">OK</strong>.</p>
<h4 id="tocHeadRef">Create an exception for MS SQL Server 2005 in Windows Firewall</h4>
<p><script type="text/javascript"><!--
loadTOCNode(3, 'moreinformation');
// --></script>To create an exception for <strong>MS SQL Server 2005</strong> in <strong>Windows Firewall</strong>, follow these steps:</p>
<p>1.    In <strong>Windows Firewall</strong>, click the Exceptions tab, and then click Add Program.<br />
2.    In the Add a Program window, click Browse.<br />
3.    Click the <strong>C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe</strong> executable program, click Open, and then click OK.</p>
<p>Note The path may be different depending on where <strong>SQL Server 2005</strong> is installed. <strong>MSSQL.1</strong> is a placeholder for the instance ID that you obtained in step 3 of the previous procedure.<br />
4.    Repeat steps 1 through 3 for each instance of SQL Server 2005 that needs an exception.</p>
<h4 id="tocHeadRef">Create an exception for the MS SQL Server Browser service in Windows Firewall</h4>
<p><script type="text/javascript"><!--
loadTOCNode(3, 'moreinformation');
// --></script>To create an exception for the SQL Server Browser service in Windows Firewall, follow these steps:</p>
<p>1.    In Windows <strong>Firewall</strong>, click the Exceptions tab, and then click Add Program.<br />
2.    In the Add a Program <strong>window</strong>, click Browse.<br />
3.    Click the <strong>C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe</strong> executable program, click Open, and then click OK.</p>
<p>Note The path may be different depending on where <strong>MS SQL Server 2005</strong> is installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/enable-sql-2005-remote-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Viruses without using Antivirus !</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 17:37:03 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[Exchange Hosting]]></category>
		<category><![CDATA[Hosting Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Anti viruses]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Hidden]]></category>
		<category><![CDATA[Read Only]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[USB Pen drives]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=182</guid>
		<description><![CDATA[One of the ways by which Computers get affected by viruses is through USB Pen drives. Anti viruses are unable to detect them and even if they do, in most cases they are unable to delete the virus. Following are the precautions you can take when plugging USB Drive on your Computer. Whenever you plug [...]]]></description>
			<content:encoded><![CDATA[<p>One of the ways by which <strong>Computers</strong> get affected by <strong>viruses</strong> is through <strong>USB Pen drives</strong>. <strong>Anti viruses</strong> are unable to detect them and even if they do, in most cases they are unable to delete the <strong>virus</strong>. Following are the precautions you can take when plugging <strong>USB Drive</strong> on your <strong>Computer</strong>.</p>
<p>Whenever you plug a <strong>USB drive</strong> in your system (which you think is infected by <strong>virus</strong>), do not open it -  Do not click &#8216;OK&#8217; !<br />
click on ‘Cancel’. Now open <strong>Command Prompt</strong> by typing ‘cmd‘ in run box.<br />
Type <strong>dir /w/a</strong> and press enter.<br />
Above <strong>command</strong> will display list of files in pen drive. Check in the list if the files are not</p>
<p>* Heap41a<br />
* New Folder.exe<br />
* Autorun.inf<br />
* svchost.exe<br />
* Ravmon.exe<br />
* or any other exe file which may be suspicious.</p>
<p>If any of the above files are present in the list, then your <strong>USB drive</strong> is infected. To remove these files, type the following <strong>command</strong> in <strong>command prompt </strong><br />
<strong>attrib -r -a -s -h *.*</strong> and press enter.<br />
This will remove from files <strong> Read Only</strong>, <strong>Archive</strong>, <strong>System</strong> and <strong>Hidden attributes</strong> .</p>
<p>The files which you will now be looking on are the junk files (<strong>viruses</strong>) and can be deleted using  <strong>del command</strong>. Delete all those files which you find suspicious. To be on a safer side, just scan again your  <strong>USB Pen drive</strong> using a <strong>anti virus</strong> to check whether it is free of <strong>virus</strong> or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/remove-viruses-without-using-antivirus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
