Hi,
I'm stuck with some weird issue of permission on database/table in SQL server. There is one WCF service running on IIS and contains code to connect to database. We are using "Integrated Security=true" in connection string. I tried to read through connection's properties to get username but no success yet. Issue is due to impersonation so I want to make sure which identity is being used in actual to make connection to database.
How to get username being used to connect to database while using "Integrated Security=true"?
Thanks.