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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:10:03+00:00 2026-05-20T14:10:03+00:00

I am working on a project which uses a relational database (SQL Server 2008).

  • 0

I am working on a project which uses a relational database (SQL Server 2008). The local (on-premises) application both reads and writes to the database. I am working on a different front end for Azure (MVC2 Web Role), which will use the same data, but in a read only fashion. If I was deploying a traditional web app, I would use SQL Express to act as the local database, and deploy changes with updates to the application (the data changes very slowly) or via some sync system.

With Azure, the picture is a little cloudy (sorry, I had to). I can’t seem to find any information to indicate if SQL Express will work inside of Web Roles, and if so, how to do it. Does anyone know if using SQL Express in an Azure web role is possible?

Other options I could do if forced: SQL CE or use SQL Azure. Both have a number of downsides, and are definitely less than perfect.

Thanks,
Erick

Edit
I think my scenario may not have been clear enough.

This data won’t change between deployments, and is only accessed from within the Web Role; it is basically a static cache. The on-premises part is kind of a red herring, as it doesn’t impact the data on the web role (aside from being its source). Basically, what I want to do is have a local data store/cache that I use existing T-SQL/DAL code with.

While I could use SQL Azure, it doesn’t add anything, and if anything only adds additional overhead and failure points. I could also use a VM Role, but that is way too costly/complex.

In a perfect world, I would package the MDF into the cspkg (so it gets deployed with the app) and then use it locally from within the role. If there is no way to do this, then that is ok and I need to figure out the pros and cons of other solutions. We don’t live in a perfect world. 🙂

  • 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-20T14:10:04+00:00Added an answer on May 20, 2026 at 2:10 pm

    You might be able to run SQL Express using a custom VHD but you won’t be able to rely on any data every being present on that VHD. The VMs are completely reset when they reboot – there is no physical persistence across reboots.

    If you wanted to, you might be able to locate your entire SQL Server installation in Azure blob storage.

    However, in doing all of this, you’ll only be able to have one worker/web role that can use that database. Remember: a SQL Server database can only be attached to one SQL Server at a time. If you want to scale out, you’ll have to create new SQL Server instances for every web/worker role.

    Outside of cost concerns, I can’t think of anything that is in SQL Express that should be a show stopper for 99.9% of applications out there.

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

Sidebar

Related Questions

I'm working on an ASP .NET 2.0 site which uses a Web Application project
I'm currently working on a closed-source commercial web-project which uses MariaDB as the database.
I am working on a project which uses an import #import progid:Blah.blah.retrieve rename_namespace(Blah) but
I'm looking at working on a project which uses C#.NET (sitting on a windows
I'm working on a project which uses JPA for persistence, and I'm trying to
I am working on a project which uses a PIC24FJ64GA002 mcu. I am working
I'm working on a project which uses OpenGL framebuffer/renderbuffer to draw freehand lines. This
I am currently working on a project which uses the AutoFac Inversion of Control
I am working on a network project which uses TCPListener and TCPClient. I have
I'm working on a little simulation project which uses Lua to drive the behavior

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.