Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Security for SQL and Web Connections

Posted on 2014-02-10
5
Medium Priority
?
275 Views
Last Modified: 2014-02-12
I currently have a Public facing Web server that has multiple Web sites two of the Web sites need access to the SQL Database Server on my local network. Currently I have a firewall rule that allows the web server to communicate to the SQL Server through the SQL ports but this is managed by the IP addresses of the SQL Server and The Web Server. The problem with is the web server has access to the complete SQL Server on the ports open for SQL. Is there a way to have individual web sites only have access to individual database on the SQL SERVER?

Thanks
0
Comment
Question by:ahmad1467
5 Comments
 
LVL 5

Expert Comment

by:Leon Kammer
ID: 39848248
Hi,

Using SQL authentication, the individual databases can be locked down to a specific user.

Cheers

Leon
0
 
LVL 23

Expert Comment

by:Patrick Bogers
ID: 39848249
Of course, they are called connection strings where you define a username/ password database etc.
This sql user only has rights to the database defined, nothing else.
0
 

Author Comment

by:ahmad1467
ID: 39848432
Thanks
 I under that I can lock down users to individual DB but I guess what I’m really looking for is to lock down Individual Websites to individual Databases.

Thanks
0
 
LVL 5

Assisted Solution

by:Leon Kammer
Leon Kammer earned 1000 total points
ID: 39848445
Hi,

you can create a user, set the user's permissions in the DB, and then alter the connection string within the website to connect to the SQL server.

This is generally housed in the web.config file.
0
 
LVL 16

Accepted Solution

by:
Surendra Nath earned 1000 total points
ID: 39851614
Yes, You can....

in order to accomplish this you have to create two SQL Logins
Let us say ABC, XYZ are the login names.....

Now for ABC assing the DB Reader role in the Database ABC_DB and remove the DBReader role in XYZ_DB....

and do viceversa for XYZ.... this will accomplish what you are looking for

you can use SP_dropRole, and SP_addRole inorder to accomplish this

http://technet.microsoft.com/en-us/library/ms189121.aspx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question