I change some field from char(50) to be VARCHAR(MAX).
I did this change from the visual studio.
Now, i trying to access to the database and i get the exception
Cannot open user default database.
Login failed. Login failed for user
‘NT AUTHORITY\NETWORK SERVICE’.
my knowledge on sql is very pure – and i dont know how to solve this problem.
I used this – and still nothing work fine.
Thanks for any help.
Update: I reverse the change that i made thru the visual studio – and all work fine.
I made the change in same way and the exception appear again.
Is there some other way to do this simple change ?
Basically because your WCF server app runs under the network service account it cannot use windows authentication to connect to SQL. Can you not use SQL username and password as the connection string?