Kbase 12624: HLI/C: A quick note on sqllogin
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
HLI/C: A quick note on sqllogin
SQLLOGIN: V6 Documentation reference: 3-GL Guide, pg. 11-13.
1) Sqllogin is called only ONCE, more than once generates an error.
2) Function returns 0 for successful login to all requested databases
and -1 if any login fails
3) Most programmers use sqlgetmsg to obtain error message.
About the parameters:
Typically, most use argc & argv for the first two parameters as shown
in the example on pg.11-14. Some choose to pass by reference, shown
in the example on pg.11-7. If not using argc & argv and no parameters
are passed in, then the first argument is 0 and the second is the null
pointer ie. (char **)0.
There is another entry about the last parameter, the application name.
Progress Software Technical Support Note # 12624