拒绝访问 - C#&本地数据库 [英] acces denied - C# & local database
本文介绍了拒绝访问 - C#&本地数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,亲爱的社区,
我最近遇到了一个问题:我想修改我使用C#内部工具创建的数据库中的一些行一切都很好,但是当我尝试运行该程序时,它说它无法连接到我的.sdf文件,因为访问被拒绝(错误5)
有人能提出解决方案吗?
谢谢,
SnuKies
Hello, dear community,
I recently have encountered a problem : I want to modify some rows from my database that I have created using the internal tools from C# studio express 2008. Everything went fine, but when I try to run the program, it says that it cannot connect to my .sdf file because the access is denied ( error 5)
Could anybody come up with a solution?
Thank you,
SnuKies
推荐答案
SDF不是数据库它应该是MDF或其他SQL数据文件类型,它是Visual Studio的Intellisense文件:请参阅链接
http://stackoverflow.com/questions/7706984/visual-studio-2010-c-project-remove-sdf-file [ ^ ]
你需要的最重要的是连接字符串。
SDF is not a database it should be MDF or other SQL data file type, it is Visual Studio's Intellisense files: see link
http://stackoverflow.com/questions/7706984/visual-studio-2010-c-project-remove-sdf-file[^]
The most important thing you need is the connection string.
这篇关于拒绝访问 - C#&本地数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文