I have a database with a big table (660K records, it’s actually connected accdb file using ADO). It’s possible to browse it in Base. I need to export this table.
I tried to select all records, Edit->Copy. Open Calc, Edit->Paste. Calc freezes and after a few minutes Windows tells me that LibreOffice stopped working. Repeat, the same result.
I also tried to follow this solution, use Tools->SQL and type:
SCRIPT ‘c:/temp/my.sql’
But Base tells me “Invalid SQL statement; expected ‘DELETE’, ‘INSERT’, ‘PROCEDURE’, ‘SELECT’, or ‘UPDATE’.”
Any ideas, how to export this big table? It would be the best to export just this one table (not the whole database) to an SQL format (CREATE TABLE, INSERT RECORD etc), but exporting to CSV is also acceptable.
[Edit]
The final code I used as a solution in Tools->SQL was:
SELECT * INTO [Text;DATABASE=C:\temp\].mytable.csv FROM Table1;
Because of a delimiter problem described in this thread, I also created file schema.ini in folder c:\temp containing the following:
[mytable.csv]
ColNameHeader=False
Format=Delimited(|)
The export took 10 seconds and looks good.