how to run database page by IIS
-
when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?
-
when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?
Couple of options: -Add the asp.net user account as a login to the Database Server (not very secure, probalby a bad option) -Connect to the database using a connection string that uses a login account already configured on the database server.
-
Couple of options: -Add the asp.net user account as a login to the Database Server (not very secure, probalby a bad option) -Connect to the database using a connection string that uses a login account already configured on the database server.
and how to configure user to databse server? i am using SQL Express 2005 my connection string is string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
-
and how to configure user to databse server? i am using SQL Express 2005 my connection string is string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
Change your connection string to something like that, must make sure the user id is a user configured on the server and specify its password.
Data Source=.\sqlexpress;integrated security = true;database =MyDatabase;User Id=myUsername;Password=myPassword;
-
Change your connection string to something like that, must make sure the user id is a user configured on the server and specify its password.
Data Source=.\sqlexpress;integrated security = true;database =MyDatabase;User Id=myUsername;Password=myPassword;
how to configure user to database i am using SQL Express 2005
-
how to configure user to database i am using SQL Express 2005
i am connecting though SQL Client
-
i am connecting though SQL Client
same exception
-
when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?
It is bad manners to post the same question to multiple forums
I know the language. I've read a book. - _Madmatt
-
when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?
-
alright...