SqlOpenDatabase

From NSB App Studio
Jump to navigation Jump to search

SqlOpenDatabase(filename)

Description

SqlOpenDataBase is used to create and open SQLite databases.

filename is the actual name of the file. If filename does not exist, it is created.

For more information on SQLite, see Using SQLite.

Example

Rem SqlOpenDatabase sample
DB = SqlOpenDatabase("customers.db")
If DB.version <> "" Then
  Print "Database version is " & DB.version
Else
  print "Database not found."
End If

Output

Database version is 1.0

Related Items

Sql

SQLite Reference

Using SQLite