Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Restrict access to a database for all applications but mine

Posted on 2008-09-30
4
Medium Priority
?
268 Views
Last Modified: 2013-12-17
Is it possible to make a SQL database accessible to my Application (c#) only, with SQL authentication logins? I don't want to let anyone open and change tables by access for example, or any other app.

Thanks
0
Comment
Question by:bsofti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:johnaryan
ID: 22609342
Yes, you just create a new SQL login for that database on the server.
Then in your connection string use the that login and password.
NB. anyone with system admin on the SQL Server will always have access you your db.
0
 

Author Comment

by:bsofti
ID: 22609935
Yes, but still, someone with that credentials can access the database through MS Access, or Visual Foxpro. I need  to allow access to my database to users, who has Login and Password on my Sql Server, but only through my application.
0
 
LVL 5

Accepted Solution

by:
johnaryan earned 750 total points
ID: 22612612
As far as I know SQL Server is agnostic of the application who accesses it. As long as the credentials match; you have access.
The options I see available are:
1. Change the password for the existing user so nobody else has access to your db.
2. Only allow execute on Stored Procs to the current user, that means even if people have access they cannot directly alter tables.
0
 

Author Comment

by:bsofti
ID: 22612653
Thank u very much for help.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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