Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to change ODBC Behavior?

Status
Not open for further replies.

ZemogSC

Programmer
Sep 29, 2003
30
US
Hi all,
We've got alot of legacy code and have been doing a major upgrade to our production system, and realzed that we may have to change possibly thousands of lines of code, and of course we're looking for a short cut. The newer ODBC Database we are using has the version 3 ODBC, while the older system has the version 2 ODBC. This machine is production and there is never any development on it or any planned in the future, we are upgrading the system due to being too far behind the current hardware/software versions for support by the vendor.

In C++ there is a function:

SQLSetEnvAttr(henv,SQL_ATTR_ODBC_VERSION, (void*) SQL_OV_ODBC2,SQL_IS_INTEGER);

Basically this statement tells the ODBC Driver manager to map the calls to an ODBC3 driver but exhibit ODBC2 behavior. This allows full backward comptability to older calls that may no longer be "supported" by the newer driver. Is there a similar way to do this in Access/VB?

Doing this would prevent many tedious code changes (it did with our C processes), any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top