End Google Ads 201810 - BS.net 01 --> Dear All,

I am not able to Find the Wrong with the Following Code.

Please Help me out.

SQLHENV envHandle;
SQLHDBC ConnHandle;
SQLHSTMT StmtHandle;
SQLRETURN Ret;

SQLSMALLINT szConnStroutlen;

SQLCHAR sZ_AuthorName[50];
SDWORD sdoutputDataLen;

unsigned char szConnStrout[255];

Ret = ::SQLAllocEnv(&envHandle);
Ret = ::SQLAllocConnect(envHandle,&ConnHandle);
Ret = ::SQLDriverConnect(ConnHandle,
NULL,(SQLWCHAR *)_T("Driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\\Uday.mdb"),
SQL_NTS,(SQLWCHAR*)szConnStrout,sizeof(szConnStrout),&szConnStroutlen,SQL_DRIVER_NOPROMPT);
Ret = ::SQLAllocStmt(ConnHandle,&StmtHandle);

//To Fetch a Relative Record.
Ret = SQLFetchScroll(StmtHandle,SQL_FETCH_FIRST,0); //The Code is Failing here.

Thanks & Regards,
Uday.