Invoking registered procedures  Direct invocation

Chapter 6: Registered Procedures

Remote procedure call invocation

To execute a registered procedure within OpenSwitch through an Adaptive Server remote procedure call, Adaptive Server must first be informed of the OpenSwitch server’s existence. Issue the following, where OPENSWITCH_NAME is the name of the OpenSwitch server in the interfaces file being used by the Adaptive Server:

sp_addserver OPENSWITCH_NAME

After this has been accomplished, OpenSwitch registered procedures can be invoked by connecting directly to the Adaptive Server using isql or something similar, and performing:

1> exec OPENSWITCH_NAME...rp_who
2> go

You can find details on setting up and invoking remote procedures in the Adaptive Server Enterprise System Administration Guide.





Copyright © 2005. Sybase Inc. All rights reserved. Direct invocation

View this book as PDF