Microsoft
Software
Hardware
Network
Question : Problem: SQLExecDirect ODBC return codes
Where can I find a list of what the different return codes mean for ODBC Direct SQL? I'm geting a -2 return code in my c++ application when I call the ODBCExecDirect statement and have no idea what that means.
Code Snippet:
1:
result = ::SQLExecDirect(hstmtCostCtr, (UCHAR*)((LPCTSTR)sSql), SQL_NTS);
Open in New Window
Select All
Answer : Problem: SQLExecDirect ODBC return codes
SQL_INVALID_HANDLE is a -2 value
Private Const SQL_SUCCESS = 0
Private Const SQL_SUCCESS_WITH_INFO = 1
Private Const SQL_NO_DATA = 100 ' Same as SQL_NO_DATA_FOUND
Private Const SQL_ERROR = (-1)
Private Const SQL_INVALID_HANDLE = (-2)
Private Const SQL_NEED_DATA = 99
Private Const SQL_STILL_EXECUTING = 2
Random Solutions
Problem: stacking versus cascading switches
Problem: Options for receiving email on BlackBerry
Problem: Image Storage best way- NAS-RAID?
Problem: Can you create profiles in iTunes, or seperate different Ipod devices to have different playlists?
Problem: SMS Console Enumeration Not Working
Problem: What is SMP, MPP, DSM, COW, GCE, NUMA, CC-NUMA?
Problem: INTEX USB PC Camera driver was not installed because the wizard cannot find the necessary software
Problem: Failed drive with error "a disk read error occurred"
Problem: Sharing ICS using wireless verizon card.
Problem: Iphone how do I use two versions of itunes