|
-
Feb 24th, 2020, 08:31 AM
#11
Thread Starter
PowerPoster
Re: The 1001 questions about vbRichClient5 (2020-02-14)
 Originally Posted by wqweto
Question 40: How to set auto_vacuum setting on a new sqlite database?
The following attempt fails with "Sorry, no open DataBase!" error
Code:
Dim oConn As cConnection
Set oConn = New cConnection
oConn.Execute "PRAGMA auto_vacuum=incremental"
oConn.Execute "PRAGMA journal_mode=WAL"
oConn.CreateNewDB "D:\TEMP\aaa.db"
There are 4 pragmas that one might need to set before creating a new database and/or issuing other pragmas (like journal_mode).
These were listed on sqlite-users mailing list as:
- pragma auto_vacuum
- pragma encoding
- pragma page_size
- pragma data_store_directory
cheers,
</wqw>
Hi wqweto, thanks for your question. I've put your question on the list in post#1.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|