Need help with ODBC databases interfacing with C++.
-
Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot
-
Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot
-
Hello everybody.I am new in this forum.I would like to know how to connect to an SQL server 2000 database by using C++ using ODBC. I have found a way of connecting to the database by using the AppWizard but i want to know if there is another way also. The second question i would like to ask is how to connect to an ODBC sql server 2000 database by using the C language and not C++. I would be grateful to anyone who can help me. Thank you. A.K.Silot
First you'll need to create a DSN. Check out Administrative Tools --> Data Sources (ODBC). Then your code can use that DSN to communicate with the database.
"Take only what you need and leave the land as you found it." - Native American Proverb