This section provides information on stored procedures you may want to create. It also supplies some example code.
Database Connectors checks for these stored procedures when opening a file and will use them in certain circumstances, such as when A_MSSQL_NO_23_ON_START is set to "No".
These stored procedures are
The INSERT stored procedures takes as arguments all columns in order listed in the XFD. They expects no columns to be returned.
The DELETE stored procedure takes as arguments the primary key fields in the order they are listed in the XFD. It expects no columns to be returned.
The READ stored procedure takes as arguments the primary key fields in the order they are listed in the XFD (in the key section). It expects the columns to be returned in order of condition. So all condition 0 columns are retrieved first, then condition 1 columns, etc. For each condition, the columns are expected in order given in the XFD
The UPDATE stored procedures takes as arguments all columns in order listed in the XFD. They expects no columns to be returned.
Sample XFD
Sample code for developer-supplied stored procedures is based on the following example of an XFD:
XFD,03,FTEST2-FILE,FTESTDAT # ftestdat.xfd (8/22/99) # Generated Sun Aug 22 07:54:28 1999 00031,00031,003 01,0,004,00000 01 FTEST2-KEY 01,1,004,00004 02 FTEST2-KEY1-SEG1 FTEST2-KEY1-SEG2 01,0,004,00008 01 FTEST2-ALTKEY2 000 0006,00006 00000,00004,16,00004,+00,000,000,FTEST2-KEY 00004,00002,16,00002,+00,000,000,FTEST2-KEY1-SEG1 00006,00002,16,00002,+00,000,000,FTEST2-KEY1-SEG2 00008,00004,16,00004,+00,000,000,FTEST2-ALTKEY2 00012,00009,00,00009,+00,000,000,FTEST2-NUMBER 00021,00010,16,00010,+00,000,000,FTEST2-INFO