![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Capturing the user's identity in a web application
In the SQL Server backend of an intranet web application I want to capture
the user's identity for an audit trail in the Insert and Update triggers. However the users are coming into the application as a generic WebUser. Is there any way to capture their name for the audit trail? (I'm more a SS person than a web developer). |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Re: Capturing the user's identity in a web application
Jane
SELECT HOST_NAME() ?? "Jane" <Jane@discussions.microsoft.com> wrote in message news:5D815517-BB02-4CCB-BA80-E873D37148CB@microsoft.com... > In the SQL Server backend of an intranet web application I want to capture > the user's identity for an audit trail in the Insert and Update triggers. > However the users are coming into the application as a generic WebUser. > Is > there any way to capture their name for the audit trail? (I'm more a SS > person than a web developer). |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Re: Capturing the user's identity in a web application
Jane wrote:
> In the SQL Server backend of an intranet web application I want to capture > the user's identity for an audit trail in the Insert and Update triggers. > However the users are coming into the application as a generic WebUser. Is > there any way to capture their name for the audit trail? (I'm more a SS > person than a web developer). Your web application can use SET CONTEXT_INFO to set the username on the connection. The triggers can then read this and pull the username out. Lookup SET CONTEXT_INFO in Books Online. Steve Troxell |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |