MyCommandPtr->CommandType = adCmdText; MyCommandPtr->CommandText = _bstr_t(_T("SELECT IDENT CURRENT ('MyTable')")); MyRecordsetPtr = MyCommandPtr->Execute(NULL,NULL,adCmdText); /*Should the next step be _variant_t vResult = MyRecordsetPtr->Fields->Item[1]->Value; int iResult = (int)vResult;*/
SELECT IDENT_CURRENT
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)