A
|
ann 5/17/2010 |
Hi, Session("UserID") . |
M
|
mgallo author 5/17/2010 |
Sorry if I misunderstood your reply but my issue is the server identifying who is logged in. Your reply looks like a client side command. |
A
|
ann 5/18/2010 |
Hi, |
![]() |
Sergey Kornilov admin 5/18/2010 |
Session("UserID") stores username of current user (if you use login page in ASPRunnerPro application). |
C
|
clig 5/19/2010 |
I'm using SQL Server 2008 & ASPRunner v6.1 with Windows Authentication for a simple database. I created an audit table in the database and want to log who made the change. I've tried both SUSER_SNAME and ORIGINAL_LOGIN but both capture my username and not the user that's logged into through ASPRunner. I couldn't find any previous posts that addressed this. TIA.
|
M
|
mgallo author 5/19/2010 |
Again, sorry for my confusion (I'm not an ASP programmer)... |
C
|
clig 5/20/2010 |
Again, sorry for my confusion (I'm not an ASP programmer)... In SQL Server 2008 I'm using CDC to generate an audit table and automatically insert a row for every change to a data table. I've added a column to the audit table to capture the user that is currently logged in and making the change. I tried both SUSER_SNAME and ORIGINAL_LOGIN as the default but keep getting me (the creator of the ASPRunner application) not the person using the application. I though that using Windows Authentication in ASPRunner would pass the user's login into the database, but this seems not to be the case. BTW I don't want to change the login process for the users, which is working just fine as it is. TIA!
|
M
|
mgallo author 5/20/2010 |
My conection string contains "Trusted_Connection=Yes", which is the string created by ASPRunner. |