My application is working correctlywhen I debug it against my sql express.
Now i have deployed on IIS on another machine with win2008 web server and changed the database connection string.
I would like that the application uses always the same user to connect to the database and not to use the identity of the connected user.
the error I get is
Error: Cannot open database "XXXXXX" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
how can i achieve this?
without knowing what your current connection string is, have a look at this site for some guidance into various connection string settings: http://www.connectionstrings.com/sql-server-2008. It’s as simple as setting up a sql account in the database itself and then using that username/password in the connection string like this: