Today I was thought of creating a C++ app that connects to MS SQL server and do functions such as retrieving records and execute SPROCs, Then I found this Soci
, a C++ library which helps our app to talk with DB, and I also found there is no specific backend-option in Soci for MSSQL unlike it has for Oracle and others, looks like, we could only talk to mssql via ODBC. however, I have been searching for a proper document/manual/reference which would give me a step by step instructions for connecting to MSSQL via soci
, I wandered around Soci's mother-site but nothing I could find for MSSQL.
(I have seen this
backend_factory const& backEnd = odbc; session sql(backEnd, "filedsn=c:\\my.dsn");
But, my DB's are hosted in a separate server, so, it would be hellpful if someone could shed some light on this:)