Solved

Restrict access to a database for all applications but mine

Posted on 2008-09-30
4
253 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 250 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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