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

This is a discussion on Using database in C++ with SQL. is it posible??? within the C++ Programming forums, part of the General Programming Boards category; Is it posible to use some database outside of program and controt it with SQL. In final I want to ...

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

    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

    Lauris

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

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

    "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
    Location
    In my house
    Posts
    29
    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
    Location
    Singapore
    Posts
    20,973
    If you do not need a full fledged database server, I suggest an embedded database engine such as SQLite.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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, 10: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, 01: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, 11:45 AM
  5. SQL database Interaction
    By (TNT) in forum C++ Programming
    Replies: 1
    Last Post: 07-14-2003, 03:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21