
-----------------------------------
impactblu
Thu Jul 28, 2011 1:20 pm

ODBC with C++ to SQL
-----------------------------------
Hi,

I'm having a hard time getting this program to work.  I'm trying to get this ODBC program to work with SQL but I get a lot of PDB errors and i'm not sure what to do about those.
here is my code

[code]

#include 
#include 
#include 
#include 
#include 

using namespace std;

void show_error(unsigned int handletype, const SQLHANDLE& handle){
    SQLCHAR sqlstate[1024];
    SQLCHAR message[1024];
    if(SQL_SUCCESS == SQLGetDiagRec(handletype, handle, 1, sqlstate, NULL, message, 1024, NULL))
        cout