11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SQLConnect<br />

Syntax<br />

status = SQLConnect (connect.env, data.source, login1, login2)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

Use this function to connect to the ODBC data source specified by data.source. Use<br />

the login1 and login2 parameters to log in to the DBMS specified by the ODBC<br />

data.source.<br />

You cannot use SQLConnect within a transaction. An SQLConnect call issued<br />

within a transaction returns SQL.ERROR, and sets SQLSTATE to 25000, indicating<br />

that the SQLConnect function is illegal within a transaction.<br />

A connection is established when the data source validates the user name and<br />

authorization.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

connect.env Connection environment assigned in a previous SQLAllocConnect.<br />

SQLConnect Input Variables<br />

SQLConnect 1-801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!