G
gnewsgroup
OK, I know this has been a popular question from newbies. But, please
don't haste to reply yet.
I've googled and tested for a few hours, and cannot have this problem
resolved.
I have followed articles on the web and enabled "SQL Server and
Windows Authentication" for my SQL Server 2005. But, it does not
solve my problem. (It is actually my default setting for my SQL
Server)
I have been developing a web application at work just fine. I wanted
to work on it this weekend at home, so I brought everything back and
dumped it onto my home PC running WinXP SP2 and SQL Server 2005.
I am using the same connection string as follows:
"Data Source=localhost;Initial Catalog=MyDatabase; User Id=myusername;
Password=secret;";
The database has been made to be compatible with SQL SERVER 2000.
I've added myusername to the database, and assigned it a dbowner
role.
Well, I can login as myusername using SQL Server Authentication and
view my database tables and do everything else, that means this
credential is fine with the database.
But, my application just cannot connect to this database, no matter
what. The error message says:
Exception Details: System.Data.SqlClient.SqlException: Login failed
for user 'myusername'. The user is not associated with a trusted SQL
Server connection.
Besides not enabling SQL Server Authentication, which is out of the
equation for my case, what else might be causing this problem?
Thank you!
don't haste to reply yet.
I've googled and tested for a few hours, and cannot have this problem
resolved.
I have followed articles on the web and enabled "SQL Server and
Windows Authentication" for my SQL Server 2005. But, it does not
solve my problem. (It is actually my default setting for my SQL
Server)
I have been developing a web application at work just fine. I wanted
to work on it this weekend at home, so I brought everything back and
dumped it onto my home PC running WinXP SP2 and SQL Server 2005.
I am using the same connection string as follows:
"Data Source=localhost;Initial Catalog=MyDatabase; User Id=myusername;
Password=secret;";
The database has been made to be compatible with SQL SERVER 2000.
I've added myusername to the database, and assigned it a dbowner
role.
Well, I can login as myusername using SQL Server Authentication and
view my database tables and do everything else, that means this
credential is fine with the database.
But, my application just cannot connect to this database, no matter
what. The error message says:
Exception Details: System.Data.SqlClient.SqlException: Login failed
for user 'myusername'. The user is not associated with a trusted SQL
Server connection.
Besides not enabling SQL Server Authentication, which is out of the
equation for my case, what else might be causing this problem?
Thank you!