Hello guys ,,
" cannot open database requested by the login. the login failed "
i have found this kind of error in my webApp what does that mean ?
please guide me ...
reply soon
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Jul 23, 2011, 3:33 AM
problem is with your connection string. If you have Trusted_Connection=True property in your connection..Change it as Trusted_Connection=false.
And One More simple way is if you are using Sql Server
follow these steps:
1. Go to Server Explorer
2. Add connect and give your server name
3. Select or Enter database name
4.Click on Test connection button...
if Test connection is done successfully then you can see the connection in Server explorer under data connections..
then right click on the connection-->Click On properties--> Copy the Connection string value and use the connection string where ever you want....
i hope it help you.........
Faisal AnsariPosted Jul 23, 2011, 4:09 AM
your answer is correct
my problem has solved :)