string s="data source=127.0.0.1;initial catalog=PDMS_CT;Connect Timeout=30"
SqlConnection conn = new SqlConnection(s.ToString());在页面上点击连接数据库是,会报这样的错
Exception Details: System.Data.SqlClient.SqlException: Login failed for user sssx-APPL\ASPNET'.
SqlConnection conn = new SqlConnection(s.ToString());在页面上点击连接数据库是,会报这样的错
Exception Details: System.Data.SqlClient.SqlException: Login failed for user sssx-APPL\ASPNET'.
解决方案 »
- 有用过TransactionScope的吗?能说明下为什么事务不回滚吗?
- form1控制form2的enabled属性
- 【高分不够再加】.net打包
- 如何实现论坛需要回复才能看见资源的功能?能给个源代码吗?
- 如何把一个窗体获得的数据集传给主窗体?
- C用一个程序实现结点类型不同的链表
- 一个解决方案可以包括多个项目
- 怎么水晶报表好像打不开带密码的Access文件,有人打开过吗?
- 哪位大侠有c#.net的入门电子书?小弟我给50分!
- 谁能解决我的问题,给多少分都行,郁闷致死。。。。
- 我在程序里面引用了media player控件,在没有安装media的机器上怎么没有办法使用呢?
- Asp.net里面怎么用sql语句查询SQL Server里smalldatetime类型的字段?
try~~~```````
不知道你的sql server 的密码是什么~~`
SQL Server registration failed because of the connection failure displayed below. Do you wish to Register anyway?
Login failed for user 'sa'. Reaon: Not associated with a trusted SQL Server connection.
-------
我自己新建了一个用户ABC,密码ABC.
但联数据库时它总是提示
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'abc'. Reason: Not associated with a trusted SQL Server connection
真不知道该怎么解决了!
SqlConnection conn = new SqlConnection(s);
SqlConnect conn =new SqlConnection(conStr);
各种连接数据库的方法大全,看看吧