views:

28

answers:

1

With windows and sql server accounts, I can access the logged in user with functions like: user_name() or suser_sname().

Can I access the user that is logged into asp.net in the same way?

A: 

No, it lives in another world. SQL Server only sees it's own connection, technically it does not even know (or care) there is ASP.NET on the other end.

TomTom