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:
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 function accepts database connection parameters. Any file to which the Parameter File (-pf) startup parameter refers must also contain only this subset.
- The
sqllogin()
function accepts both ESQL and Progress database connection parameters. However, because a database connection failure during login prevents all further access to ESQL-LIB, usingsqlconn()
for all database connections is more efficient.This example connects database testdb in single-user mode, and assigns it the logical database name
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 |