Which is the best solution for a program which runs as networkservice (or defined user) and needs to be connected to a database as a specific user:
DbConnection ConnectionString with username and password
Impersonate Windows Identity just before running the query
Keep in mind security is important in my case.
View Complete Post