Hi all, VERY lame question I'm sure, but I've finally given up.
Basically all I want to do is count the number of rows in my SQLite table. Sounds very simple.
Can anyone please suggest why I have an error "SQL logic error or missing database"?Code:sql = "select count(*) from territories"; tbResults = SQLite.QueryToTable(db, sql); max_rows = Table.Concat(tbResults, "", 1, TABLE_ALL); Paragraph.SetText("Paragraph1", "The query took " .. hours.. " hrs " .. mins .. " mins "..secs.." secs. \nIt returned " .. no_rows .. " rows. \n" .. max_rows .. " rows imported into SQLite")
What I'm doing in AMS (and this part is working), is;
a) Connect to Oracle Applications, use Oracle SQL to retrieve data from database to text file (yuk, but there's no direct SQLite to Oracle method I know of....)
b) Load that text file (yuk again) into SQLite in AMS
c) give the user a message like "244 rows imported into SQLite"
Sounds soooo simple...
Thanks in advance
Andy

Reply With Quote