Question : Cursor not declared when trying to connect

We have an application that accesses Axapta SQL  databases. Our sql code works correctly and accesses one customer's database, but using the same code to access
another customer's database yields the following error message:  

Error in fOpenDB = 37000: [Microsoft][ODBC Sql Server Driver][Sql Server] The cursor was not declared - err.Number = 40002

We are coding with VB6 and are using Sql Server 2000 on a Windows 2000 machine.
Any help would be appreciated.

Answer : Cursor not declared when trying to connect

Yep, or you go to the enterprise manager -> sql server -> security -> logins. And to the database access tab inside the users properties.
Random Solutions  
 
programming4us programming4us