Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.46 KB

SQLGetConnectAttr.md

File metadata and controls

65 lines (48 loc) · 1.46 KB

Home

Function name : SQLGetConnectAttr

Group: ODBC API - Library: odbc32


SQLGetConnectAttr returns the current setting of a connection attribute.


Code examples:

Retrieving current settings for an ODBC connection

Declaration:

SQLRETURN SQLGetConnectAttr(
	SQLHDBC      ConnectionHandle,
	SQLINTEGER   Attribute,
	SQLPOINTER   ValuePtr,
	SQLINTEGER   BufferLength,
	SQLINTEGER * StringLengthPtr);  

FoxPro declaration:

DECLARE SHORT SQLGetConnectAttr IN odbc32;
	INTEGER   ConnHandle,;
	INTEGER   Attribute,;
	INTEGER @ ValuePtr,;
	INTEGER   BufferLength,;
	INTEGER @ StringLengthPtr  

Parameters:

ConnectionHandle [Input] Connection handle.

Attribute [Input] Attribute to retrieve.

ValuePtr [Output] A pointer to memory in which to return the current value of the attribute specified by Attribute.

BufferLength [Input] If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr.

StringLengthPtr [Output] A pointer to a buffer in which to return the total number of bytes available to return in *ValuePtr.


Return value:

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE.