I have been asked to link C++ Program and Database for a Semester Project.I’m using VS 2010 for C++ Project and SSMS 2019 for Database.After doing much research,i landed upon the idea of setting up ODBC library,for the specific database say Demo…Which i did….i also created a seperate header file and added code(for linking DBS) + all the neccesary header files like #include <sqltypes.h>,
#include <sql.h>,#include <sqlext.h> that i found on one website,but to no avail.Besides,i am unable to find any tutorial that explicitly states how to achieve the said job.All of them are for linking C# with Dbs.And not what i want.
I have the whole code done and dusted,the only thing left is the connection….What i want to do is add values in the dbs during run-time(user-input to be stored in the dbs)….But unable to achieve…I dont know what to do? Any guidance would be appreciated….Thanks
AndyR is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.