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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:12:11+00:00 2026-05-27T14:12:11+00:00

This is for a new project which will start on the desktop with the

  • 0

This is for a new project which will start on the desktop with the option to scale to multiple users on SQL Server 2008 R2 or SQL Server 2012

I’m looking for some real world experience, tips, gotchas etc.

UPDATE – Ideally would prefer to switch in runtime via a config entry.

UPDATE 2 – Are there any pattern(s) which can be used here?

UPDATE 3 – the SQL SERVER 2008 db schema is already in prod use, so cannot start with ssce model code first and progress from there

  • 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-05-27T14:12:12+00:00Added an answer on May 27, 2026 at 2:12 pm

    The theory

    EDMX

    In case of EDMX you need at least two SSDL files. One for SQL server and one for SQL Server CE. The reason is that SSDL file describes database including database types. Some types in SQL Server CE are different. For example SQL server CE doesn’t support NVARCHAR(max) and you must use NTEXT instead. SSDL also contains information about provider manifest so even if your column types and names are exactly same you still need to SSDLs to differ provider manifests.

    If your tables and names in both databases will be same you can use same MSL (CSDL must be the same). Working with two SSDLs is much harder because it either means two EDMXs and some manual synchronization of changes or single EDMX and some script which will extract second SSDL or maintaining whole mapping manually in XML files. Entity framework VS designer is not prepared for this type of usage.

    Code-first

    Code first provides much more simplified situation because you don’t have to deal with SSDL. SSDL is created automatically when your application starts based on provider defined in connection string and mapping defined in your model.

    Even code first can have problems when it comes to different data types in SQL Server and SQL Server CE. As and example we can again use large strings.

    The practice

    The theory says it is possible. The practice says it can be much more challenging. SQL Server and SQL Server CE are different database servers with different features and performance. SQL Server provides much more features and some of these features will not work on SQL Server CE (views, sql procedures) at all (you mentioned you already have schema for SQL Server) or will be much slower. Once you meet this limitations you will either have to branch your development for separate support on SQL Server and SQL Server CE or you will have to make compromises.

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

Sidebar

Related Questions

I would like to start a new project which will make extensive use of
I created a new View (LogView) in Infrastructure.Module project. This view will be used
I'm going to start a new project which is going to be small initially
We are about to start a new project. It will be a group of
I am doing a project in ftp,which will do multiple uploads,and the process i
I'm about to start a new project which should have a rather large database.
My enterprise is about to start a somewhat complex project in which we will
Im new on this project and am going to write, what i thought was
I'm starting a new personal project on the side, so this is the first
I'm starting on a new iPhone project, and this application mostly relies on MySQL.

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.