10 October 2006
General:
The following connects to the ODBC/UDBC DSN REXXSQL with a username of scott and password of tiger.
rc = sqlconnect( "MYCON", "scott", "tiger", "REXXSQL" ) |
The following connects to the ODBC/UDBC DSN REXXSQL with no username or password. The REXXSQL DSN must specify the username and password.
rc = sqlconnect( "MYCON", , , "REXXSQL" ) |
The following connects to the ODBC/UDBC database with a connect string only
connect_string = "Driver={SQL Server};Server=MyServer;db=pubs;uid=scott;pwd=tiger" rc = sqlconnect( "MYCON", , , , connect_string ) |
Bind Variables:
ODBC uses the standard placemarker; ?. See 7. Standard placemarkers and bind variables for further details.
Data types:
The datatypes supported by ODBC can be determined by a call to SQLGETINFO with the DATATYPES option.
Known errors: