I am building an MVC application with C# as my language which is hosted on Widows 7 IIS. A call to Add a new member to the database works, but when attempting to save the change I get the following error:
Cannot open user default database. Login failed.
Login failed for user ‘IIS APPPOOL\myApplication’
The SQL table was added just by adding it within VS.
The user ‘IIS APPPOOL\myApplication’ has not been given access to the database which is defined as the default database for that user.
The bigger question is, what is your intended security access model? Pooled identity, connection per user, Impersonation?