Solved

Restrict access to a database for all applications but mine

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

635 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