Solved

Restrict access to a database for all applications but mine

Posted on 2008-09-30
4
240 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now