0

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.

2
  • you need bindings/connectors to your SQL server, such as the one for MysQL server in this question Commented Oct 15, 2012 at 9:43
  • any plain tutorial for this issue Commented Oct 22, 2012 at 11:51

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.