The following example show you how to create a stored procedure, a subscription to the stored procedure, and a DB2 Everyplace application to use the stored procedure. The purpose of the example application is to allow a mobile user to check an account balance and transfer money between a savings and a checking account by using a DB2 Everyplace remote stored procedure call.
Prerequisites
The remote query and stored procedure adapter supports the Win32 (non-unicode), WinCE, Symbian, and Palm OS client platforms. The remote query and stored procedure adapter requires that the stored procedures are registered to DB2.
Restrictions
DB2 Everyplace supports one connection to the local database and one connection to the remote database with some limitations. The application must connect to the local database first (if a local connection is needed), then connect to the remote database (if a remote connection is needed). The allocated connection handles should be freed together.
User should allocate only one statement handle for the remote connection.
Procedure
To create a stored procedure, a subscription to the stored procedure, and a DB2 Everyplace application to use the stored procedure using the sample application:
Conceptos relacionados
Tareas relacionadas
Consulta relacionada