检查本地数据库是否已创建 C#
我的 C# 密码生成器/存储区即将完成。所有密码都存储在本地加密数据库中,该数据库经过哈希处理,并且还具有数据库密码。我正在使用 sql express/compact(无论它叫什么)手动创建数据库。我想知道是否有一种方法可以检查数据库是否已创建并且包含正确的表。如果未创建数据库,是否有办法告诉它创建加密数据库?如果不存在,也可以在特定位置创建一个文件夹,也可以创建它并将数据库存储在其中。
谢谢
Almost done with my C# Password Generator/Store. All the passwords are stored in a local encypted database that is hashed and also has a DB password. I am using sql express/compact(whatever it is called) to create the database manually. I was wondering if there was a way to check if a database was already created and has the right tables included. Also is there a way if the DB is not created to tell it to create an encrypted DB? Also have it create a folder in a speceific location too if that is not there also create it and store the DB inside.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
运行这样的查询。
您可以按正确的顺序对每个表
You can run a query like this
for each table in the right order.
替代方案
表格
文件夹创建是数据库创建过程中的过程
Alternative
Alternative
Folder creation is the process during the database creation