...funcResult = SQLConnect(connHandle, database, SQL_NTS, username, SQL_NTS, password, SQL_NTS);
database, username and password are all const char *. It seems like SQLConnect isn't properly passing along 'database'.
Has anyone else had this same problem or know what I could be doing wrong...