Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12
  1. #1
    Join Date
    Sep 2003
    Posts
    69

    Questions regarding SQLite

    Happy Holidays everyone!

    I thought I would take a look at the plug-in SQLite that came with 6.0 and I am wondering a few things.

    First I do a lot of programming with Access 2000 Developers edition so I am wondering:

    1) What are the limits of SQLite? Can it only handle so much data?
    2) Is it possible to compact a fragmented data base?
    3) Please don't laugh... How do you create the initial .db database? I tried playing with an MS access .mdb file but it does not seem to work.

    A lot of the stuff I do in MS Access is very complicated quaries and reports. Am I best to stick with MS Access for this, or .... is it worth the learning curve to switch over to SQLite?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    SQLite is great for a single user database. If you're going mult-user, I wouldn't use it.

    This link is to the sample app IR put out with the initial plugin for AMS5, it should answer a lot of your questions.

    http://www.indigorose.com/forums/sho...61&postcount=6

  3. #3
    Join Date
    Sep 2003
    Posts
    69
    Thanks Worm!

    Greatly appreciate it.

    When you have a minute or two, could you let me know how to create the initial database file. Or... is this something that is done on the fly.

    I tried opening one of the sample files with notepad (I was not sure if it was a csv file or ??. And it is all encoded so I am not sure where to start with building the actual database.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Take a look at the sample app. In the Projects actions, you'll see how the db is created.

  5. #5
    Join Date
    Sep 2003
    Posts
    69
    So if I need to add fields to an existing table, or add more than one table to the database I would just add more lines here?

    And... If there was already data in the fields, would it just add the new fields and / or tables? Or would it overwrite the existing data?

    I guess I could just try it and see but it's much more fun picking someones brain.

  6. #6
    Join Date
    Dec 2003
    Posts
    891
    If you want to create, browse, and populate an Sqlite DB separate from AMS, go Here and download the sqlite browser. Get version 1.01 as it is the version used in AMS and most compatable.

  7. #7
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    And... If there was already data in the fields, would it just add the new fields and / or tables? Or would it overwrite the existing data?
    You cannot add or delete fields from an existing table in SQLite. If you need to make changes to a table and keep the existing data, you will need to copy the data to a tempory table, delete the original table, create a new table with the chnages you want and then copy the data back from the temp table.
    Dermot

    I am so out of here

  8. #8
    Join Date
    Sep 2003
    Posts
    69
    Thanks for all the help!

    The browser will be a great tool to work with as well.

  9. #9
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    To add to Dermot's post:

    http://www.sqlite.org/faq.html#q13
    Intrigued

  10. #10
    Join Date
    Dec 2005
    Location
    PA
    Posts
    27

    Huh?

    Hello Worm! I was wondering... I need to build a database for dates, times, people, (Places, etc..) etc.. Like a record. What would I need to start this and how would I even begin? The forum is very helpful, but its also confusing. I got the graphics and trial of APM 6. This database is for a group of friends that are Ghosthunters.

    I also want to be able to click on a button, (New Record) and start a new hunting record!! Lol, I know its ghosthunting but what can I say!!!

    Thanks,
    Gypsymoon35

  11. #11
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    Which SQLite Version is in AM6

    Hi,

    Which SQLite version is being deployed currently in AM6? Which one is in AM5?

    The SQLite 3.O and earlier can ALTER TABLE by ADDing a COLUMN. But after the ADD COLUMN, it has to be followed by a VACUUM statement to optimize the TABLE.

    The SQLite 3.1 onwards can ALTER TABLE by ADDing a COLUMN as well. The VACUUM is auto, only if the PRAGMA autovacuum flag is set to 1 before doing any TABLE creation. Otherwise you can still use VACUUM statement.

    DELETE COLUMN from a TABLE is not supported by SQLite

    For further reference, goto : http://sqlite.org/lang.html

  12. #12
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by azmanar
    Hi,

    Which SQLite version is being deployed currently in AM6? Which one is in AM5?
    Hi,

    Ok. I use SQLite.GetVersion(); to get SQLite version in AM6.

    It is SQLite 2.8.6 .

    Any plans to Upgrade?

Similar Threads

  1. SQLite database in MEMORY only!
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 10-23-2009, 07:49 PM
  2. SQLite questions
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 08-11-2004, 07:33 AM
  3. Sqlite questions from beginner
    By ianhull in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 08-05-2004, 08:23 PM
  4. Weird Errors
    By RobbyH in forum AutoPlay Media Studio 4.0
    Replies: 9
    Last Post: 01-30-2003, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts