无法打开用户默认数据库.登录失败. [英] Cannot open user default database. Login failed.

查看:424
本文介绍了无法打开用户默认数据库.登录失败.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,
我在连接数据库时遇到问题.它返回错误
无法打开用户默认数据库.登录失败.用户'MUDRAIT-21 \ Mudrait21'的登录失败. SQL Server 2005
这是我的网站.config
我已尝试使用aspnet_regsql授予默认数据库的权限

Data Source =.\ SQLEXPRESS; AttachDbFileName = C:\ Program Files \ Default Company Name \ RSEInstaller \ RSE.mdf; Integrated Security = true; User Instance = True; ' providerName = " System.Data.SqlClient " /

任何建议都会受到赞赏

Hi,
    I have a problem in connecting to the database . it return with error 
 Cannot open user default database. Login failed.Login failed for user 'MUDRAIT-21\Mudrait21'

Configuration : Visual studio 2008 & SQL Server 2005
Here is my web .config
I have tried out aspnet_regsql for granting permission for default data base

Data Source=.\SQLEXPRESS;AttachDbFileName=C:\Program Files\Default Company Name\RSEInstaller\RSE.mdf;Integrated Security=true;User Instance=True;' providerName="System.Data.SqlClient"/

Any suggestion will be really appreciated

推荐答案

这可能会有所帮助:
http://www.connectionstrings.com /


这篇关于无法打开用户默认数据库.登录失败.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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