Marco Bambini wrote:
It is safe to read the first N bytes in a db file and check for the string "** This file contains an SQLite 2..." or the string "** This file contains an SQLite 3..." to determine if the db was created with the 2.x or 3.x version?

Is there a better method?


I think that works. Though the correct prefixes are:

  Version 2.8:  [** This file contains an SQLite 2.1 database **]
  Version 3.0:  [SQLite format 3.]

--
D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565



Reply via email to