连接错误 [英] Error on connection

查看:75
本文介绍了连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个网站上工作.
存在错误:登录名请求无法打开数据库示例".登录失败.用户"SOMENDRA \ ASPNET"的登录失败."

请给我解决方案.

I''m working on a website.
There is an error: "Cannot open database "Example" requested by the login. The login failed. Login failed for user ''SOMENDRA\ASPNET''."

Please give me solution on it.

推荐答案

您需要在SQL Server登录名中添加SOMENDRA \ ASPNET并授予其对数据库的访问权限.
检查:如何:创建SQL Server登录名 [
You need to add SOMENDRA\ASPNET to SQL server logins and grant it access to your database.
check : How to: Create a SQL Server Login[^]


也请检查此处 [
Also check here[^] for connection string.


这篇关于连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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