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>
|