G
GCeaser
All,
We have a need to be able to perform auditing on the database side
of our application. As part of the requirement we must know the userid
of the person performing the database modification.
All of the approaches that have been implemented at our organization so
far, result in connection pooling not being taken advantage of. They
are: 1) Using a standard ID and password in SQL Server but providing
the userid in the app= connection string parameter 2) Using windows
integrated authentication.
The goal is that we want the userid performing the transaction
regardless of whether or not the modification is performed via the
application of a direct database connection through some other tool.
This indicates the need to use a trigger for the auditing.
One of the ideas I had was if the Stored Procedure that the application
calls could set some SQL Server variable to the value of the userid,
then the userid could be passed into the stored procedure as a
parameter and each stored procedure would simply sent the userid
variable and the trigger would check that variable first. If the
variable was not populated, it would use the normal user id variable in
SQL Server.
Any ideas or suggestions on this? (Note: We are using SQL Server
2000)
thanks
George
We have a need to be able to perform auditing on the database side
of our application. As part of the requirement we must know the userid
of the person performing the database modification.
All of the approaches that have been implemented at our organization so
far, result in connection pooling not being taken advantage of. They
are: 1) Using a standard ID and password in SQL Server but providing
the userid in the app= connection string parameter 2) Using windows
integrated authentication.
The goal is that we want the userid performing the transaction
regardless of whether or not the modification is performed via the
application of a direct database connection through some other tool.
This indicates the need to use a trigger for the auditing.
One of the ideas I had was if the Stored Procedure that the application
calls could set some SQL Server variable to the value of the userid,
then the userid could be passed into the stored procedure as a
parameter and each stored procedure would simply sent the userid
variable and the trigger would check that variable first. If the
variable was not populated, it would use the normal user id variable in
SQL Server.
Any ideas or suggestions on this? (Note: We are using SQL Server
2000)
thanks
George