SQL Server 2005/2008: Identify current user

Posted by Torben H. on Stack Overflow See other posts from Stack Overflow or by Torben H.
Published on 2010-04-09T06:37:34Z Indexed on 2010/04/09 7:13 UTC
Read the original article Hit count: 394

Hello

I have a web application, which is using a SQL Server 2005 database.

My problem is, that the application has no role management. So the application always accesses the database with one default user. But now I have to save and access a value only for the current user.

Is there any way to do this? Maybe something like a session on the web server? The best way would be, if there is any possibility to access the current session id of the web server from T-SQL.

Do anyone understand my problem? :)

Torben

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql-server-2005