rajeevnandanmishra
Programmer
psuedocode of my program is as follows:
In visual foxpro:
BEGIN TRANSACTION
SELECT local_cursor
DO WHILE ! EOF()
EXETUTE SQL_PROCEDURE 'parameter 1','parameter 2' --to update tables in backend
IF ERROR()
ROLLBACK TRANSACTION
SHOW_ERROR_MESSAGE
RETURN
ENDIF
SKIP -- Move Record Pointer to Next Record
ENDDO
COMMIT TRANSACTION
Some time this work fine. But most of the time it gives an error message "Connectivity error: [Microsoft][ODBC SQL Server Driver]Communication link failure"
Can any one suggest me about this.
In visual foxpro:
BEGIN TRANSACTION
SELECT local_cursor
DO WHILE ! EOF()
EXETUTE SQL_PROCEDURE 'parameter 1','parameter 2' --to update tables in backend
IF ERROR()
ROLLBACK TRANSACTION
SHOW_ERROR_MESSAGE
RETURN
ENDIF
SKIP -- Move Record Pointer to Next Record
ENDDO
COMMIT TRANSACTION
Some time this work fine. But most of the time it gives an error message "Connectivity error: [Microsoft][ODBC SQL Server Driver]Communication link failure"
Can any one suggest me about this.