Solved

Restrict access to a database for all applications but mine

Posted on 2008-09-30
4
219 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank u very much for help.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

9 Experts available now in Live!

Get 1:1 Help Now