数据库访问被阻止 [英] Database access blocked

查看:85
本文介绍了数据库访问被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


仍然是我(来自线程使用BindingSource写入数据库的问题"

二手产品:visual studio 2008 xpress,sql server 2005 xpress

重新编码(略)解决了我将数据写入db的问题.
因此,如果没有解决问题2的方法,项目将毫无意义:
打开Management Studio后,选择数据库并检查其表
如果不重新启动计算机,我将无法访问数据库.
因为我从未在C#和
中都没有输入任何数据来连接服务器 Mangagement Studio(我唯一要做的就是将其设置为"Windows身份验证")i''m
在这种情况下完全无助.

没有更多的想法吗?


it''s still me (from thread "problem using BindingSource to write to DB"

used : visual studio 2008 xpress, sql server 2005 xpress

recoding (slightly) has solved my problem of writing data to db.
so project however is wothless if there''s no solution to problem 2:
once opening management studio, selecting the db and checking it''s tables
i can''t access the db without restarting the computer.
since i''ve never entered any data for connecting to server neither in C# nor in
Mangagement Studio (only thing i did is set it to "windows authentication") i''m
totally helpless in this case.

no more ideas ?

推荐答案

要连接到数据库,您始终需要具有诸如数据库名称,源,用户名和密码之类的值才能访问它.这些可以直接作为用户输入提供,也可以从Web应用程序中的web.config文件或其他任何文件中检索.

尝试更具体地回答您的问题,然后只有我们才能解决.
For connecting to a database you always needs to have values like the database name, the source, username and password to access it. These can either be provided directly as user inputs or can be retrieved from some where like web.config file in case of web applications or any other file.

Try to be more specific in your question, then only we would be able to solve it.


似乎sql server的服务已停止.当您退出Management Studio时,服务将停止,因此您会收到登录失败错误".一次尝试切换回Visual Studio,但不退出Management Studio,如果可行的话.您遇到了问题....
It seems that the service of sql server is getting stopped. When you exit the management studio the service stops and hence you get the "Login Failed Error". For once try switching back to Visual Studio with out exiting the management studio, and if it works. You have got your problem....


这篇关于数据库访问被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆