nicholasting
Programmer
I use stored Procedure to do import data from DBF database(source files)into SQL server database. the process of the stored procedure is run successfully, but data is not insert into SQL server. sometimes it it is import succesfully into SQL server with the same DBF database(source files).
my DBF's (source files) are contain same data, same structure even thought the import process is successfully or unsuccessfully.
my stored procedure have validation to check when import data from DBF to SQL successfully or not.
------------sample----------------------
IF @ERROR_CD<>0
BEGIN
SET @RESULT=@ERROR_CD
ROLLBACK TRAN
RETURN
END
----------------------------------------
after all the process can go through, end of the procedure i do have COMMIT TRAN.
is that any comments?
regards,
nicholas
my DBF's (source files) are contain same data, same structure even thought the import process is successfully or unsuccessfully.
my stored procedure have validation to check when import data from DBF to SQL successfully or not.
------------sample----------------------
IF @ERROR_CD<>0
BEGIN
SET @RESULT=@ERROR_CD
ROLLBACK TRAN
RETURN
END
----------------------------------------
after all the process can go through, end of the procedure i do have COMMIT TRAN.
is that any comments?
regards,
nicholas