Product Documentation

FairCom Java Stored Procedures

Previous Topic

Next Topic

Init

First we need to open a connection to the FairCom Database Engine.

Below is the code for Initialize():

SET ECHO OFF

-- Initialize

ECHO INIT;

SET AUTOCOMMIT OFF;

IF EXISTS (select proc_name from sysprocedures where proc_name = 'define')

BEGIN

DROP PROCEDURE Define;

END

IF EXISTS (select proc_name from sysprocedures where proc_name = 'add_customermaster_record')

BEGIN

DROP PROCEDURE Add_CustomerMaster_Record;

END

IF EXISTS (select proc_name from sysprocedures where proc_name = 'delete_records')

BEGIN

DROP PROCEDURE Delete_Records;

END

IF EXISTS (select tbl from systables where tbl = 'custmast')

BEGIN

DROP TABLE custmast;

END

TOCIndex