J
James Coulter
Hi,
I've written a SQL trigger that attempts to automatically assign a project
to a category based on the value in one of the outline code fields.
The outline code field is mandatory, so the user has to select a value
before the project can be saved.
The trigger is applied to the MSP_CODE_FIELDS table for INSERT. It then
looks up the value in the MSP_OUTLINE_CODES table, then gets the matching
category ID from MSP_WEB_SECURITY_CATEGORIES.
Finally, it inserts a record into MSP_WEB_SECURITY_CATEGORY_OBJECTS to
associate the project with the correct category.
However, after applying the trigger to the table, when I try to save a
project to the database, I get an error message saying:
[Microsoft][ODBC SQL server driver]Connection is busy with another hstmt
Can anyone tell me how I can get this to work?
Thanks,
James
I've written a SQL trigger that attempts to automatically assign a project
to a category based on the value in one of the outline code fields.
The outline code field is mandatory, so the user has to select a value
before the project can be saved.
The trigger is applied to the MSP_CODE_FIELDS table for INSERT. It then
looks up the value in the MSP_OUTLINE_CODES table, then gets the matching
category ID from MSP_WEB_SECURITY_CATEGORIES.
Finally, it inserts a record into MSP_WEB_SECURITY_CATEGORY_OBJECTS to
associate the project with the correct category.
However, after applying the trigger to the table, when I try to save a
project to the database, I get an error message saying:
[Microsoft][ODBC SQL server driver]Connection is busy with another hstmt
Can anyone tell me how I can get this to work?
Thanks,
James