WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ODBC
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Return Codes in the ODBC Extender

Keywords:   return codes 0 -1

Question:

I'm running some ODBC code. The qAllocEnv function returns a positive number (handle), but the qAllocConnect and other functions along the way return a 0. Does this mean it's failing or is this expected behavior?

Answer:

If qAllocConnect returns anything other than a -1, then that means it's a success. So a return of a zero (0) means it's working!
Article ID:   W14777
File Created: 2017:07:28:13:58:33
Last Updated: 2001:11:08:12:39:57