Chapter 5 C Routines Reference
Retrieve a shared data collection handle.
JagStatus JagGetCollection (
SQLPOINTER name,
JagDataCollection ** ppCollection)
name
The name of the collection.
ppCollection
The address of a JagDataCollection handle. ppCollection is set to NULL if the specified collection does not exist.
Return value |
To indicate |
---|---|
JAG_SUCCEED |
Success |
JAG_FAIL |
Failure |
Check the server's log file for more information when JagGetCollection fails.
JagGetCollection retrieves a shared data collection handle. The collection must have been previously created by JagNewCollection.
Collections can be shared only among components that are installed in the same Jaguar package. A collection created by a component that is installed in one package can not be retrieved by a component that is installed in a different package.
See "Share Data Between C Components" in the Jaguar CTS Programmer's Guide for more information.
JagFreeCollectionHandle, JagGetCollection, JagLockCollection, JagLockNoWaitCollection, JagNewCollection, JagUnlockCollection
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |