Re: sqlexit()
Posted in 1997
Rich Sedman wrote: > > Hi, I havn't been following this group so sorry if this has already been > covered or is in the faq. Anyway, I need to disconnect from a database > and server in 4gl 6.0 and above (online and SE) so that I can bring the > server down. I've found reference to a function sqlexit() but this > doesn't seem to exist. 'close database' doesn't quit the sql process > either. Anybody come across this before or got any better ideas how I > can do the equivalent of a 'disconnect all' in 4gl. The 6.0 4GL libraries do indeed have both sqlexit() and sqldetach() (do: nm $INFORMIXDIR/lib/tools/*.a | fgrep sqlexit to search). But, both are "C" functions which take no arguments and returns an integer (0 if successful <0 if not successful). You will have to write 4GL callable wrappers for these. Art S. Kagel