SqlOpenDatabase: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
SqlOpenDatabase(''filename'')
SqlOpenDatabase(''dnName'')


== Description ==
== Description ==
Line 5: Line 5:
SqlOpenDataBase is used to create and open SQLite databases.  
SqlOpenDataBase is used to create and open SQLite databases.  


''dbName'' is the name of the database. If ''dbName'' does not exist, it is created. The database is created in temporary memory, unless the use the name ''localStorage''.
''dbName'' is the name of the database. If ''dbName'' does not exist, it is created. The database is created in temporary memory, unless the name is ''localStorage''.


For more information on SQLite, see [[Using SQLite]].
For more information on SQLite, see [[Using SQLite]].

Revision as of 14:46, 28 April 2024

SqlOpenDatabase(dnName)

Description

SqlOpenDataBase is used to create and open SQLite databases.

dbName is the name of the database. If dbName does not exist, it is created. The database is created in temporary memory, unless the name is localStorage.

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