SQLite DB Engine IsOpened
IsOpened read only property 

Indicates if a database is currently opened by this instance of the object.


b = object.IsOpened


The property is Boolean. True - means a database is opened, False - no database is opened (Execute cannot be used).


If Not db.IsOpened Then
  ' Open the database before continuing
  If Not db.Open(Server.MapPath("mydb.db")) Then
    ' Deal with the error
  End If
End If
' Do the actual work


If the property is False you should not call the Execute method because it will not be able to operate and will return an error. 

Applies to: SQLite COM object

See also: Execute, Open

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later


newObjects Copyright 2001-2006 newObjects [ ]