Executing a language statement as an RPC

This is an example of how to execute a SQL language statement to the access service through an RPC:

C:> isql -Sadaptiveserver -Uuser -Ppassword
 1> execute directconnect. . .dcon “select * from user.authors”
 2> go

where:

The access service RPC event handler is sensitive to several RPC keywords, including the keyword dcon used in this example. An RPC can have many parameters. Before the resulting string is executed, all parameters are concatenated. The access service translates the first parameter into a dynamic SQL statement, submits it to the target database, and returns the result set to the client application.

The event sequence is as follows:

  1. ASE determines whether the remote server directconnect is configured as a remote server:

  2. ASE does one of the following:

    This connection exists for the term of the RPC. It is reused if ASE submits other RPCs.