sqlconn() — Connect Database(s)

Connects one or more databases to your program.

This function returns normalized values. For more information, see the function return values in the "General Diagnostics" section in this chapter:

SYNTAX
int
sqlconn ( pparms )
  char  *pparms;				  /* INPUT */ 

pparms

A pointer to a string that contains database connection parameters. This string may also specify the Parameter File (-pf) startup parameter.

NOTES

EXAMPLE

This example connects database testdb in single-user mode, and assigns it the logical database name dbase1.:

sqlconn("-1 testdb -ld dbase1"); 

SEE ALSO

sqldiscon() — Disconnect a Database, sqllogin() — Start a Progress ESQL Session, Progress Startup Command and Parameter Reference , and the CONNECT statement in the Progress Language Reference for more information on the parameters that sqlconn() accepts.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095