登录时出错?登录失败 [英] error while login ?login failed

查看:102
本文介绍了登录时出错?登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



登录时出现一个错误.

喜欢-

与sql服务器建立连接时发生与网络有关或特定于实例的错误.找不到服务器或无法访问该服务器.请验证实例名称正确且sql server配置为允许远程连接.( provider:命名管道Provider,错误:40无法打开与sql server的连接)"
并在我的web.config文件中
< add key ="dbConnection" value ="Data Source = Shrinidhi-PC; Initial Catalog = SeatAllotment; Integrated Security = true;">
在我的sql中还有一件事没有登录.我的意思是说它没有自动连接的登录用户名和密码.它正确吗?

谁能建议我什么类型的错误?

谢谢

Hi,

I am getting one error while login.

Like -

"A network-related or instance -specific error occurred while establishing a connection to sql server. the server was not found or was not accessible. verify that the instance name is correct and sql server is configured to allow remote connections.(provider:Named pipes Provider,error:40 Could not open a connection to sql server)"
and in my web.config file
<add key="dbConnection" value="Data Source=Shrinidhi-PC;Initial Catalog=SeatAllotment;Integrated Security=true;">
and one more thing in my sql there is not login.i mean to say there is no login user name and password it connects automatically..is it correct??

Can anyone suggest me what type of error?

Thanks

推荐答案

检查您的SQL连接值..
Check your SQL connection values..


检查您的连接字符串.尝试从Visual Studio浏览数据库,如果可以的话,只需从数据库属性窗口中获取连接字符串并使用该连接字符串.
Check your connection string. try browsing the database from visual studio and if you can then just take the connection string from the database properties window and use that connection string.


在您的连接字符串中执行Trusted_Connection = true
In your connection string do the Trusted_Connection=true


这篇关于登录时出错?登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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