Thread: Using database in C++ with SQL. is it posible???

  1. #1
    Registered User
    Join Date
    Mar 2007
    Kaunas, Lithuania

    Using database in C++ with SQL. is it posible???

    Is it posible to use some database outside of program and controt it with SQL.
    In final I want to write some program which would be only GUI(graphical user interface) of some database file.
    If it is posible can anyone give a direction how to do that??? Would be excellent if would be something like in code opening database file, and geting info using SQL


  2. #2
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Luxembourg, Europe

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    There must be dozens of database access libraries for C++. May I recommend SOCI?
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Apr 2007
    In my house
    I personally learned how to use MySQL with C++ and I must say that it is very easy to use and access and modify with the use of SQL syntax, so I would assume that there is a library that will allow for SQL database access in your C++ programs

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    If you do not need a full fledged database server, I suggest an embedded database engine such as SQLite.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. accessing an SQL database through C++
    By abachler in forum Windows Programming
    Replies: 11
    Last Post: 11-20-2008, 11:41 PM
  2. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  3. file system vs sql database
    By underthesun in forum C++ Programming
    Replies: 7
    Last Post: 01-05-2008, 02:50 PM
  4. Parsing a flat file to a SQl Server database?
    By Michael71 in forum C Programming
    Replies: 0
    Last Post: 01-16-2007, 12:45 PM
  5. SQL database Interaction
    By (TNT) in forum C++ Programming
    Replies: 1
    Last Post: 07-14-2003, 03:52 AM