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 uses them in certain circumstances.
These stored procedures are
The INSERT stored procedures takes as arguments all columns in order listed in the XFD. It 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. It expects no columns to be returned.
The STARTnnn stored procedure takes as arguments a mode string (EQ, LE, GT, GE, LT), and then all columns of key nnn in order listed in the XFD. It must execute "raiserror 22006 'Record not found'" if no rows match the search criteria.