I'm using Forms Authentication and a SQl 2005 database. I want to track who entered new records into the table. Of course I'm able to get the time and date but the asp.net current user is not being added to the table.
I have one account accessing the sql database so if I use the suser_name or one of the others properties, I get that user account instead of the current user that is entering the record. I've also tried the user_name() and Session_User property.
What default property should I use?
I have one account accessing the sql database so if I use the suser_name or one of the others properties, I get that user account instead of the current user that is entering the record. I've also tried the user_name() and Session_User property.
What default property should I use?