I am trying to make a connection from a C / C++ application to a SQL Server database. I am using Visual Studio 2013, but the version of SQL Server is quite old. (I'm not sure how to tell which version it is, though...I know that the SSMS version is 8).
"SQLGetDiagRec(handletype, handle, 1, sqlstate, NULL, message, 1024, NULL)"
populates sqlstate with 0011E434 and message with 0011EC3C. I can't seem to find any information on what those codes mean.
What is the correct way for me to establish a DB connection?