how to run database page in 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?
-
Don't use integrated security and specify a username and password in your connection string.
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase"; hv i to use this string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
-
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase"; hv i to use this string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
hotthoughtguy wrote:
string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
Something like that. I think it is user id instead of username, and of course no quotes around the values. For a good reference see http://www.connectionstrings.com/[^]
-
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
-
It is bad manners to post the same question to multiple forums
I know the language. I've read a book. - _Madmatt
altight.. sorry
-
altight.. sorry
well thanks for that link