Thread: Virtual Data Base

  1. #1
    Registered User
    Join Date
    Apr 2006

    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.


  2. #2
    Registered User
    Join Date
    Aug 2005
    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    You can use in-memory databases with 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. Virtual Base Classes
    By skewray in forum C++ Programming
    Replies: 11
    Last Post: 12-21-2006, 06: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, 06: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