Using Win32 functions in Visual FoxPro Image Gallery
ODBC API
..msdn
SQLAllocEnv
SQLAllocHandle
SQLBindCol
SQLBrowseConnect
SQLConfigDataSource
SQLConnect
SQLCreateDataSource
SQLDataSources
SQLDisconnect
SQLDriverConnect
SQLDrivers
SQLExecDirect
SQLFetch
SQLFreeEnv
SQLFreeHandle
SQLGetConfigMode
SQLGetConnectAttr
SQLGetDiagRec
SQLGetEnvAttr
SQLGetFunctions
SQLGetInfo
SQLGetInstalledDrivers
SQLGetPrivateProfileString
SQLInstallerError
SQLManageDataSources
SQLNativeSql
SQLRowCount
SQLSetConfigMode
SQLSetEnvAttr
SQLTables
Code examples:
Retrieving current settings for an ODBC connection
SQLGetConnectAttr
..msdn    Add comment     W32 Constants      Translate this page
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.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-03-23 10:31:44
Modified: 2002-03-23 10:34:07
Visited in last 7 days: 29
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.112.193)
29 sec.
Function group: 'Network Management'
1.03 min.Function: 'GradientFill'
3.08 min.Function: 'GetSystemInfo'
Google
Advertise here!