Keeping a Temp Table Active
Posted: Wed 11 Jan 2017 22:45
I was previously using TADO Objects.
The application was setup with a temp table #LoggedInUser
When the connection was established I'd create the temp table, load it into a TADOTAble component, modify the value to be the User ID for the user that was logged in.
That way stored procedures, triggers everything could record audit records for the the user based on the logged in user.
This method doesn't seem to be working with SDAC. Either the dataset is open as read only, or the temp table is no longer present by the time changes are made.
Any ideas on how to accomplish this with out completely redesigning all triggers, stored procedure and edits in my application?
The application was setup with a temp table #LoggedInUser
When the connection was established I'd create the temp table, load it into a TADOTAble component, modify the value to be the User ID for the user that was logged in.
That way stored procedures, triggers everything could record audit records for the the user based on the logged in user.
This method doesn't seem to be working with SDAC. Either the dataset is open as read only, or the temp table is no longer present by the time changes are made.
Any ideas on how to accomplish this with out completely redesigning all triggers, stored procedure and edits in my application?