Posted on 2002-06-05
I am writing a C++ front end for an SQL database ass a school assignment. (Cal State Hayward in California - A Database Architecture class...)
I am having trouble connectuing to the school's SQL database with the SQLConnect function. Where I supply the database name, I have an IP address for the database, but it's not port number 80, it's a port number in the 1500 range. (The database also has a short five letter name.) Specifying the IP address won't let me connect. How do I specifiy the port number in SQLConnect argument that asks for the database name? Do I need to provide the database name as well?
The function parameters are like so:
SQLConnect(hdbc, (SQLCHAR*) "database name (Or IP address)", SQL_NTS,
(SQLCHAR*) "username", SQL_NTS,
(SQLCHAR*) "password", SQL_NTS);