查看: 740|回复: 0
|
SQL Server login 问题
[复制链接]
|
|
小弟遇到这样的问题, 当我用visual studio.net 2005 执行database operation时,一切正常, 但是如果我用 http://localhost/HM/Login.aspx 在IE打开时,会出现以下问题 :
Cannot open database "hans" requested by the login. The login failed.
Login failed for user 'MYPC\ASPNET'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Cannot open database "hans" requested by the login. The login failed.
Login failed for user 'MYPC\ASPNET'.
我的sql server con string 是:
string con = "Data Source=MYPC\\sqlpro;Database=hans;Integrated Security=SSPIersist Security Info=True;User ID=saassword=sa123;Connect Timeout=30;User Instance=False";
请问各位大大,有遇过此问题吗? |
|
|
|
|
|
|
| |
本周最热论坛帖子
|