I have problems with communication between a program inserting /updating data in an MS SQL-database.
The updating app. is programmed in SAS and runs every night on a Windows XP as a batch program.
The problem uccurs when the SAS program is trying to update one specific table (X), and only that one. Every night the program may update ammong 50 tables but the problem have occured with no other table than X.
The SAS program is doing this:
- deleting records form the temporary table
- Inserting new data into the temporary table
- updating the data table by running a dedicated stored procedure
The code for deleting/updating the data is done for many tables during the loop.
My problem is:
Once in a while the loops stops, and in the log I am able to see, that 1 row has been inserted into the temporary table and after that the program is waiting for something.....?
The data table is not updated.
When I delete the inserted record in the temporary table. the program starts running again.
What is the problem?