SQLGETPROP( ) Function

Example   See Also

Returns current or default settings for an active connection.

Syntax

SQLGETPROP(nConnectionHandle, cSetting)

Returns

Character, Numeric, or Logical

Arguments

nConnectionHandle

Specifies the connection handle to the data source returned by SQLCONNECT( ). If you specify 0 for nConnectionHandle, SQLGETPROP( ) returns the environment setting.

cSetting

Specifies the setting. See SQLSETPROP( ) for a list of the settings you can specify.

Remarks

If a connection level error occurs,  – 1 is returned. If an environment level error occurs,  – 2 is returned.