realbasic-nug
[Top] [All Lists]

Re: new SQL lite db from RB Database

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: new SQL lite db from RB Database
From: Phil M <phil at mobleybros dot com>
Date: Wed, 30 Nov 2005 13:49:15 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <226 dot 2eb6cc2 dot 30bf74f6 at aol dot com> <A6CE5AC5-C93C-4AAB-9813-A19F7315C449 at haranbanjo dot com>
On Nov 30, 2005, at 1:40 PM, Will Leshner wrote:

Thats great. So how does my program know (or care) if its opening an old db or a new one?

You need to create a new REALSQLDatabase object to open REAL SQL Databases. It won't open old databases. To open old databases, you need to create a new REALDatabase.

I think he was asking how to identify an old database file. Here is something that would work, but it might not be the best method.

Basically you pass the REALSQLDatabase the file, and check to see if Connect worked. If it does not, then attempt to open it with REALDatabase... if that works then you know you have the old format... and then you create a new REALSQLDatabase file and start copying the data.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>