Hi All,
Asked this in SQL Server forum and have been redirected here.
I hope this makes sense!
I have a set of pages that connect via ODBC to a SQL Server 2005 database. On my main table is a trigger to update an audit table with the field updated, the old value, new value, date updated and the user's.
The user name field is the one causing problems - its only recording the ODBC used to connect rather than the user from my secured pages. I have a login feature that records other changes etc, but can't pass the user name to the trigger...HELP!
Is there a way to do this as i sort of need to name and shame users that are changing data incorrectly!
Nicola
Asked this in SQL Server forum and have been redirected here.
I hope this makes sense!
I have a set of pages that connect via ODBC to a SQL Server 2005 database. On my main table is a trigger to update an audit table with the field updated, the old value, new value, date updated and the user's.
The user name field is the one causing problems - its only recording the ODBC used to connect rather than the user from my secured pages. I have a login feature that records other changes etc, but can't pass the user name to the trigger...HELP!
Is there a way to do this as i sort of need to name and shame users that are changing data incorrectly!
Nicola