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

  • Home
  • SEARCH
  • 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 9104125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:47:31+00:00 2026-06-17T01:47:31+00:00

I trying to open an SQLITE database in read-only mode according this link: Connection

  • 0

I trying to open an SQLITE database in read-only mode according this link:Connection strings for SQLite

SQLITE Connection string

string ConString = string.Format(@"Data Source={0}dbname.s3db;Version=3;New=False;Compress=True;Mode = Read Only;Temp Path={1};"
                , System.AppDomain.CurrentDomain.BaseDirectory,TempPath); 

            using (SQLiteConnection connection = new SQLiteConnection(ConString))
            {
                    //Rerun Exception
                    connection.Open();

Exception:

Valid parameters: Data Source= (required)
Version= (default: 2) New=True|False
(default: False) Compress=True|False (default: False)
UTF8Encoding=True|False (default: False)

according Opening A New Database Connection by setting read-only mode with the SQLITE_OPEN_READONLY flag can open database in read only mode,but dose any one done it in c#?

  • 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-17T01:47:32+00:00Added an answer on June 17, 2026 at 1:47 am

    I just burn my application on CD and it’s work on read-only mode.

    It’s seems this is not required to set mode read only for read only device like CD or DVD,its work fine:)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this possible? I am trying to open a SQLite database cursor in one
I am trying to open a writeable SQLite database with this code... public DataAdapterForServieClass
I guess many people already read this article: Using your own SQLite database in
I'm querying a database with SQLite. I'm trying to get data from this database,
I'm trying to use SQLite's C API to open a database and access some
I am trying to open a SQLite database in android, the database works fine
I am trying to get a connection to a SQLite database (using Eclipse on
I trying to open C: directly with FileStream without success: new FileStream(C:, FileMode.Open, FileAccess.Read,
I'm trying to open a file for input in Excel with this line :
I'm trying to open a file and read from the last point read. My

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.