I made a simple c++ console program with Borland c 3.1, and I want to connect to sql server to manipulate data in the data base.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Old vanilla way is to create ODBC driver using the Windows control panel. After that you use ODBC library in your application. The idea of this approach is that you specify all information about your server in the control panel and in you app you specify just the name of the driver and nothing else.
I used this approach and it worked as described in MSDN. The code is not short at all.
There is a better way when you specify everything in your app. I had sample code that uses these undocumented features. It was long ago. I am not sure I can find this code now.