How to use SQLGetinfo_()?
Posted: Thu Jan 11, 2007 10:53 am
Hi,
can anybody explain how to use this API function SQLGetinfo, please?
I want to know the Name of the database that ist in use. Or is there another way to get it if the database is opened with OpenDatabaseRequester() in PB?
InfoValue has to be 16 as far as I know to get the DBName.
I'm an absolut newbie with this Api stuff. So a code example would be nice.
Thanks for your help,
bommel
can anybody explain how to use this API function SQLGetinfo, please?
Code: Select all
SQLRETURN SQLGetInfo (
SQLHDBC ConnectionHandle, /* hdbc */
SQLUSMALLINT InfoType, /* fInfoType */
SQLPOINTER InfoValuePtr, /* rgbInfoValue */
SQLSMALLINT BufferLength, /* cbInfoValueMax */
SQLSMALLINT *StringLengthPtr); /* pcbInfoValue */
InfoValue has to be 16 as far as I know to get the DBName.
I'm an absolut newbie with this Api stuff. So a code example would be nice.
Thanks for your help,
bommel