0

I have a C# application with .NET 3.5 and SQL SERVER 2008 R2. I want to make a setup project and i want to install each user db while installation.

I use local db when i import database as application file, the database is available and anyone who has access to the laptop os has access to the database. because the local db' s are not for the multiuser scenarios.

how to secure the database file' s from access or being modified? it contains sensitive data for application behave.

4
  • are you worried about the whole db or the contents that you put into db? depending on this multiple scenarios are possible. Commented Feb 25, 2015 at 9:09
  • the important matter is contents of DB. when it comes to comparison whole db is Second Commented Feb 25, 2015 at 9:11
  • Cool. So what you can do is for example use t-sql crypto functions (msdn.microsoft.com/en-us/library/ms173744.aspx) or encrypt in code using symmetric (e.g. Aes) or asymmetric (e.g. PKCS7 envelope) methods. Commented Feb 25, 2015 at 9:12
  • how can i encrypt the whole data with a key ? Is it even possible? and access it by that key Commented Feb 25, 2015 at 9:21

1 Answer 1

1

Create in sql windows authentication to server authentication then you can add username and password then you can secure your database

Sign up to request clarification or add additional context in comments.

2 Comments

if you want to create database at the time of installation then you need installer class then give you reference in setup file
the data base file will be packed and ready to use for each different clients. should i use SQL impact?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.