Hi,
I'm building an application in cpp that should connect to a vertica database.
I've installed the odbc driver on the dev machine and defined a DSN named "Vertica". it works fine via isql, but the following code results in "Could not connect to database":
const char* dsnName = "Vertica";
const char* userID = "<omitted>";
const char* passwd = "<omitted>";
ret = SQLConnect(hdlDbc, (SQLCHAR*)dsnName,SQL_NTS,(SQLCHAR*)userID,SQL_NTS,(SQLCHAR*)passwd, SQL_NTS);
if(!SQL_SUCCEEDED(ret)) {
printf("Could not connect to database.\n");
}
Upon debug, the ret variable is found to be -1.
Is there any way to get a more verbose response?
Thanks