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:
Retrieveing general information about the driver and data source associated with an ODBC connection
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
SQLGetInfo
..msdn    Add comment     W32 Constants      Translate this page
SQLGetInfo returns general information about the driver and data source associated with a connection.
Code examples:
Retrieveing general information about the driver and data source associated with an ODBC connection
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Declaration:
SQLRETURN SQLGetInfo(
    SQLHDBC       ConnectionHandle,
    SQLUSMALLINT  InfoType,
    SQLPOINTER    InfoValuePtr,
    SQLSMALLINT   BufferLength,
    SQLSMALLINT * StringLengthPtr);
FoxPro declaration:
DECLARE SHORT SQLGetInfo IN odbc32;
    INTEGER   ConnectionHandle,;
    INTEGER   InfoType,;
    STRING  @ InfoValuePtr,;
    INTEGER   BufLen,;
    INTEGER @ StrLenPtr
Parameters:
ConnectionHandle
[Input]
Connection handle.

InfoType
[Input]
Type of information.

InfoValuePtr
[Output]
Pointer to a buffer in which to return the information.

BufferLength
[Input]
Length of the *InfoValuePtr buffer. If the value in *InfoValuePtr is not a character string or if InfoValuePtr is a null pointer, the BufferLength argument is ignored.

StringLengthPtr
[Output]
Pointer to a buffer in which to return the total number of bytes available to return in *InfoValuePtr.
Return value:
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
My comment:
The native SQLGetProp function in Visual FoxPro delivers a small part of this functionality. Probably it acts more like a filtering wrapper. Or may be a wrapping filter :) hey, whatever you choose.
Word Index links for the SQLGetInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-03-21 20:20:47
Modified: 2002-03-21 20:27:03
Visited in last 7 days: 50
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.221.136.62)
16 sec.Function: 'SCardListReaderGroups'
33 sec.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
49 sec.Function: 'PaintDesktop'
1.07 min.Function: 'GetFileNameFromBrowse'
1.33 min.Function: 'GetDiskFreeSpace'
1.58 min.Function: 'AVIFileInfo'
1.82 min.Function: 'GetFileAttributesEx'
2.07 min.Example: 'Monitoring changes occurring within a directory'
2.37 min.Function: 'SCardEstablishContext'
2.63 min.Function: 'waveInClose'
Google
Advertise here!