How to access SQL Server database located in Web Server inside DMZ
-
Friday, November 30, 2012 7:05 PM
Hi,
We have a Web Server 2008 R2 hosting our public website. This is located in a DMZ. We created a SQL Server 2008 Express database inside the web server. We don't really care about data security for this database. All data are not proprietary. So people can hack it for all I care.
An ASP.NET web page needs to access the database over the Internet. I need for a dropdownlist in the web page to be populated with data from the database. But I can't get it to work. It works in Visual Studio running on the web server. Is there any other configuration I need to do to access the database since our production server resides in a DMZ?
Appreciate any help.
Marilyn Gambone
All Replies
-
Monday, December 03, 2012 3:26 AMModerator
Hi deskcheck1,
To allow remote connection to SQL Server, we can refer to the following documents to configure SQL Server remote connections, start the SQL Server Browser service, create exceptions in Windows Firewall.
How to enable remote connections in SQL Server 2008:
http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspxHow to configure SQL Server 2005 to allow remote connections (this is also fit to for SQL Server 2008):
http://support.microsoft.com/kb/914277TechNet Subscriber Support
If you are TechNet Subscriptionuser and have any feedback on our support quality, please send your feedbackhere.Allen Li
TechNet Community Support- Proposed As Answer by Allen Li - MSFTModerator Tuesday, December 11, 2012 1:09 AM
- Marked As Answer by deskcheck1 Thursday, December 13, 2012 4:46 PM
-
Thursday, December 13, 2012 4:46 PM
Hi,
Thank you. I was able to solve this issue. Yes, I enabled remote connections in SQL server; also configured Windows Firewall. But the clincher was that I needed to use SQL Server Authentication instead of Windows Authentication. I then had to encrypt the username and password so it would be exposed in the Internet. It's working fine now.
Marilyn Gambone
-
Thursday, December 13, 2012 4:47 PMYou know I MEANT: IT WOULDN'T BE EXPOSED IN THE INTERNET, right? :)
Marilyn Gambone


