Dealing with SQL/ODBC

Jun 30, 2012 at 11:57pm
Hi there guys. I'm an algorithm C/C++ coder. I'm currently developing an application that's much wider than the algorithm zone. I require having a connection between the app and SQL or some sort of property lists (I got that from Objective-C. I'm an Objective-C developer).

As I worked before with servers, I've always known that SQL is extreme better in speed and efficiency. I've got 2 ways to get this working. The first way is to implement it through C++, and the second way to make an Objective-C library that C++ can implement. I've searched for it and I guess that C++ implementation for SQL is better.

I googled C++ ODBC. I've found really complicated and hard-to-read tutorials, but the best thing I found was here.

http://simpledb.sourceforge.net/doc/index.html

The point is, I still don't understand where do we specify the file directory and what are those lines

1
2
3
SimpleDB::IntColumn intCol;
SimpleDB::Column * columns[1] = {&intCol};
query.bind(columns, 1);


What is the bind function/method responsible for and why does it take columns, 1 as the arguments?

Any help is appreciated. Thanks.
Last edited on Jun 30, 2012 at 11:58pm
Jul 1, 2012 at 12:20am
the file directory
?

The DB Connection details are in the ODBC Connection String.
Jul 1, 2012 at 12:23am
Sorry but what's that?
Jul 1, 2012 at 12:03pm
It's the string you pass to the ODBC driver that tells it how to connect to the database. I just found this which you might find useful.
http://www.connectionstrings.com/
Topic archived. No new replies allowed.