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 8813473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:51:38+00:00 2026-06-14T03:51:38+00:00

I set up a SQLite db with the same schema as my existing SQL

  • 0

I set up a SQLite db with the same schema as my existing SQL server db and noted the following…

  1. SQLite field names (and presumably everything else) are case sensitive.
  2. MicroLite’s SqlBuilder appears to insert the prefix ‘dbo.’ before the table name, which SQLite doesn’t like…

This query works…

query = new SqlQuery("SELECT [ClubID], [Name] FROM [Clubs] WHERE [ClubID] = @p0", 3);

clubs = session.Fetch<MicroLiteClub>(query);

This one doesn’t…

query = SqlBuilder.Select("*")
                  .From(typeof(MicroLiteClub))
                  .Where("ClubID = @p0", 3)
                  .OrWhere("ClubID = @p1", 22)
                  .OrderByDescending("Name")
                  .ToSqlQuery();

clubs = session.Fetch<MicroLiteClub>(query);

MicroLite logged: “no such table: dbo.Clubs”

  • 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-14T03:51:39+00:00Added an answer on June 14, 2026 at 3:51 am

    This is happening because SQLite doesn’t support table schemas like MS SQL Server does.

    In the hand crafted query, you are not specifying a schame for the table FROM [Clubs] however in your mapping attribute you will have specified dbo as the schema like this:

    [Table(schema: "dbo", name: "Clubs")]
    

    The SqlBuilder doesn’t know what SQL Dialect is in use so if a schame is present on the table mapping, it will be used. This means that it would generate FROM [dbo].[Clubs]. To rectify this, simply remove the schema value on the TableAttribute as is optional from MicroLite 2.1 onwards.

    On a side note, MicroLite 2.1 introduced support for In in the SqlBuilder fluent API so you could change:

    .Where("ClubID = @p0", 3)
    .OrWhere("ClubID = @p1", 22)
    

    to

    .Where("ClubID").In(3, 22)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up a simple SQLite database in Android, handling the schema
I have to execute the following query in Android SQLite UPDATE player SET rank=rank+1
I have 3 SQLite DBs, each having exactly the same set of 7 tables
I have just setup a Sql Server db using the same mappings and source
I have a pretty simple table in SQLite, with the following schema: CREATE TABLE
i have set up an SQLite database. it seems that when i run a
I have a SQLite database that contains a huge set of log messages. I
I have an sqlite database which currently holds an integer field called Year which
I am receiving a set of models from my SQLite Database with Ruby on
I am following the Rails Tutorial with the database set up using postgreSQL so

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.