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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with ODBC in VB DLL called by ASP

Status
Not open for further replies.

mmmmdonuts

Programmer
Jul 13, 2001
2
US
In my asp page, I am calling a function in a VB6 dll to access a DB2 database. When the code was run locally from an NT4 workstation, everything was fine. Since it has been moved to an IIS server, I am getting the following error on the line of code that attempts to open the database connection:
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e21' 
ODBC driver does not support the requested properties. 
/hrtest3/Prototype-mbm/Default.asp, line 46
I don't think that it's a code problem because it worked fine on the PC. I don't think that it's necessarily an ODBC problem on the server because I can access the DB2 database directly from the asp page without using the dll.

Any help is appreciated, and "shots in the dark" are welcome.

Thanks,
Marty
 
I HAD A SIMILAR PROBLEM AND I ONLY COPY THE DLL FILE FROM THE PC TO THE SERVER.

FIRTS RE-NAME THE DLL FILE FROM DE SERVER AND COPY THE DLL FILE FROM THE PC.

GOOD LUCK.
 
Thanks for your idea, but the dll, (which I wrote,) is already on the server, where it has been registered.

Marty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top