好的,我有一个经典的asp应用程序,我有一个连接string来尝试连接到数据库。
我的连接string如下所示:
Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial Catalog=mydb;database=mydb;User Id=me;Password=123
现在,当我通过前端访问数据库我得到这个错误:
Microsoft OLE DB Provider for SQL Server error '80040e4d' Login failed for user 'me'.
我看着sql分析器,我得到这个:
Login failed for user 'me'. Reason: Password did not match that for the login provided. [CLIENT: <named pipe>] Error: 18456, State:8.
我试过了:
我得到这个错误:
Microsoft OLE DB Provider for SQL Server error '80004005' Cannot open database mydb requested by the login. The login failed.
我认为您需要在configurationpipe理器中启用命名pipe道并重新启动服务。 也启动SQL浏览器服务。