简体   繁体   English

如何为C#应用程序制作安全的本地SQL数据库

[英]How to make secure local SQL database for C# application

I have a C# application with .NET 3.5 and SQL SERVER 2008 R2. 我有一个带有.NET 3.5和SQL SERVER 2008 R2的C#应用​​程序。 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. 当我将数据库作为应用程序文件导入时,我使用本地db,该数据库可用,并且有权访问笔记本电脑操作系统的任何人都可以访问该数据库。 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. 它包含用于应用程序行为的敏感数据。

在sql windows身份验证中创建到服务器身份验证,然后可以添加用户名和密码,然后可以保护数据库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM