I have been working with a VB application that uses a VC++ MFC dll as a data
layer. It uses ODBC classes and has worked for about 3 years now. After
installing MDAC 2.1 and VS6 SP3 all of a sudden the call to
SQLSpecialColumns to try an get the unique columns since Access database
doesn't support SQLPrimaryKeys. The return from this call is still
SQL_SUCCESS. We then bind the the columns to describe the Unique columns
and then call SQLFetch. Previously this would return SQL_SUCCESS_WITH_INFO
and we would store the column names. Now it returns SQL_NODATA. I think
that this code came from a microsoft provided example of how to get the
unique columns for an access database but can't seem to find an updated
version of it for the latest MDAC. Has anyone else run into this problem?
Thanks,
Ed