Virtual Data Base

This is a discussion on Virtual Data Base within the C++ Programming forums, part of the General Programming Boards category; I want to create dynamically a virtual data base in the memory, and then execute queries on the data base. ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    1

    Question Virtual Data Base

    I want to create dynamically a virtual data base in the memory, and then execute queries on the data base. How can I do it?
    BTW, the data base includes some tables with relationships.




    Thanks
    aukh

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Why do you want it in memory instead of on the hard drive? If you want to do SQL queries then you will need an sql database engine such as Microsoft Jet Engine for MS Access databases. Initially create the database and tables using MS Access then you can write programs to insert, update and delete rows, and do all the queries you want. But all those requests are filtered through the database engine and your program does not access the database files directly. If your program uses ODBC functions then it will be able to access almost any database in the world as long as you have it installed on your computer or a network computer.
    Last edited by Ancient Dragon; 04-04-2006 at 05:47 AM.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,541
    Have a piece of fairy cake
    OK, I'm going to assume you've been programming for a week, and that your previous program was "hello world".

    Now, are you going to provide some actual information, like for example why mysql is totally inadequate for your task?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,725
    You can use in-memory databases with 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. Virtual Base Classes
    By skewray in forum C++ Programming
    Replies: 11
    Last Post: 12-21-2006, 05:56 PM
  2. Replies: 3
    Last Post: 10-27-2006, 12:33 AM
  3. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  4. can't insert data into my B-Tree class structure
    By daluu in forum C++ Programming
    Replies: 0
    Last Post: 12-05-2002, 05:03 PM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM

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