Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7910009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:41:21+00:00 2026-06-03T12:41:21+00:00

I am using the System.data.sqlite.dll in my vb.net program. And for the life of

  • 0

I am using the System.data.sqlite.dll in my vb.net program. And for the life of me I can’t figure out the code to activate WAL mode.

Do I activate this command right after I Create the DB or with every new SQLiteConnection.

And if so what code would need to be used right now im using something like:

cnn As New SQLiteConnection(String.Format("Data Source={0}\{1};PRAGMA jounal_mode=WAL;", Application.StartupPath, DBName))

is this how that PRAGMA command should be used?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:41:22+00:00Added an answer on June 3, 2026 at 12:41 pm

    You can always use the SQLiteConnectionStringBuilder class to do the job for you:

        SQLiteConnectionStringBuilder connBuilder = new SQLiteConnectionStringBuilder();
        connBuilder.DataSource = filePath;
        connBuilder.Version = 3;
        //Set page size to NTFS cluster size = 4096 bytes
        connBuilder.PageSize = 4096;
        connBuilder.CacheSize = 10000;
        connBuilder.JournalMode = SQLiteJournalModeEnum.Wal;
        connBuilder.Pooling = true;
        connBuilder.LegacyFormat = false;
        connBuilder.DefaultTimeout = 500;
        connBuilder.Password = "yourpass";
    
    
        using(SQLiteConnection conn = new SQLiteConnection(connBuilder.ToString()))
        {
        //Database stuff
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short Version : I'm using a 64bit dll (system.data.sqlite) in an Asp.net MVC app
I'm using the following code (System.Data.SQLite within VB.net): Dim SQLconnect As New SQLite.SQLiteConnection() Dim
Just some background, sorry so long winded. I'm using the System.Data.SQLite ADO.net adapter to
I'm going to give an example of using System.Data.SQLite.DLL which is a mixed assembly
I downloaded System.Data.SQLite , and tried to compile the following sample code. using System;
There are Windows dll's here: http://www.sqlite.org/download.html There are .NET setups here: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki If I'm
I am using the official System.Data.SQLite ADO.NET provider for my application, and I am
I'm trying to build System.Data.SQLite in Visual Studio using the source code downloaded from
I am using SQLite from system.data.sqlite.org We need to access the database from many
I have a WPF Application using Fluent NHibernate 1.0 RTM and System.Data.SQLite 1.0.65 that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.