Nonstop Database, HiRDB Version 9 SQL Reference
REPLACE CLIB (Replace external C library file)
Function
In order to execute an external C stored routine on the machine that the UAP is executed on, REPLACE CLIB replaces an existing external C library file on the HiRDB server on which the external C stored routine is implemented.
Format
REPLACE CLIB {:embedded-variable|'character-string'}
|
Operands
Specifies the name of the external C library file to be replaced. Specify an absolute path name or a relative path name for the name of the external C library file.
Common rules
Example
Specify and replace an external C library file (c:\work\sampleproc.dll) using an embedded variable.
EXEC SQL BEGIN DECLARE SECTION ;
struct {
short len ;
char str[256] ;
} filename ;
EXEC SQL END DECLARE SECTION ;
EXEC SQL CONNECT ;
strcpy(filename.str,"c:\\work\\sampleproc.dll") ;
filename.len = strlen(filename.str) ;
EXEC SQL REPLACE CLIB :filename ;
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.