11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Return Values<br />

The following table describes the return values of the SQLSpecialColumns<br />

function.<br />

Return Value Description<br />

0 SQL.SUCCESS<br />

1 SQL.SUCCESS.WITH.INFO<br />

−1 SQL.ERROR<br />

−2 SQL.INVALID.HANDLE<br />

SQLSpecialColumns Return Values<br />

Results are returned as a standard result set ordered by SCOPE. The following table<br />

lists the columns in the result set. The lengths of VARCHAR columns are maximums;<br />

the actual lengths depend on the data source. To get the length of the<br />

COLUMN.NAME column, use the SQL.MAX.COLUMN.NAME.LEN option of<br />

the SQLGetInfo function.<br />

Column Name Data Type Description<br />

SCOPE Smallint Actual scope of the row ID. It contains<br />

one of the following:<br />

SQL.SCOPE.CURROW<br />

SQL.SCOPE.TRANSACTION<br />

SQL.SCOPE.SESSION<br />

The null value is returned when col.type<br />

is SQL.ROWVER.<br />

COLUMN.NAME Varchar(128)<br />

Not null<br />

DATA.TYPE Smallint<br />

Not null<br />

TYPE.NAME Varchar(128)<br />

Not null<br />

Column identifier.<br />

SQLSpecialColumns Results<br />

Either an ODBC SQL data type or a<br />

driver-specific SQL data type.<br />

Data-source-dependent data type name.<br />

SQLSpecialColumns 1-853

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

Saved successfully!

Ooh no, something went wrong!