now, i tried two days with sqlite.
I have tried this code from sampler and works, database is created,
Code: Select all
On preopenstack
global gConID
local tConId
put revOpenDatabase("sqlite","Schule.db",,,,,,) into tConID
if tConID is "" then
answer warning "Problem creating or accessing database!"
else
answer information "Schule Connected! Your connection ID is: " & tConID
put tConID into gConID
end if
global gConID
if gConID is "" then
answer information "No Database is Connected to, please go back 1 step and connect to the Database!"
end if
local tSQL, tResult
put "CREATE TABLE users(userID integer primary key, name text,email text,emailList boolean)" into tSQL
revExecuteSQL gConID, tSQL
put the result into tResult
if the result is not empty then
answer warning the result
put "CREATE TABLE apps(appID integer primary key, appName text,appRegCode text,appUserID integer)" into tSQL
revExecuteSQL gConID, tSQL
put the result into tResult
if the result is not empty then
answer warning the result
end if
answer information "Number of Tables Added: " & tResult
end if
end preopenstack
Ralle