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: Speakers picking up radio frequency
Problem: Smart-UPS 3000 XLM in self-test loop and failing under load.
Problem: Problem with nic card in redhat 5
Problem: Need answers asap. All of my points for an adequate response regarding cd burner installation.
Problem: HP 5500 LASERJET COLLATE PRINT
Problem: Generating PuTTY SshHostkeys (hashed) from a hostkey
Problem: Microsoft Vista + Sony Vaio VGN-FZ240E_suddenly no sound, though control panel shows OK
Problem: Setup VLAN
Problem: Compare Cisco Catalyst 3560 series versus 4500 series?
Problem: Can connect from home to office network using Cisco VPN client 4.0.2 (A) on WinXP Pro, but not on WinXP Home.