Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everybody,

i have a problem in my web application.the problem is i can not connect to database

on server and it gives me an error.the error is :

Cannot open database "databasename" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.


please help me.thanks in advance
Posted

Check credentials first, next check below link:

http://social.msdn.microsoft.com/Forums/en/adodotnetdataproviders/thread/a31656a9-5715-4910-ad96-fa590344a407[^]

Try command : sp_grantlogin 'NT AUTHORITY\NETWORK SERVICE'
 
Share this answer
 
v2
Comments
M0$!98 17-Dec-10 6:35am    
thank you very much indeed.
Click Here[]
May this help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900