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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:10:19+00:00 2026-06-07T14:10:19+00:00

We have been using Visual Studio 2010’s database projects for several internal or single-customer

  • 0

We have been using Visual Studio 2010’s database projects for several internal or single-customer projects since they were first introduced, and they are working great for us so far. Now we’re using them for the first time with a “boxed” product that needs to be packaged for installation at arbitrary customer sites.

Everything I have seen so far suggests that I ship the .dbschema file plus the vsdbcmd tool and its requirements as part of my MSI, then launch that tool as part of the install.

Is this really the simplest way to accomplish this task? We are doing this for our initial beta testing but so far, it seems like a quick hack rather than a good long-term deployment strategy. In particular, we are forced to install both SQL Server CE 32-bit and SQL Server CE 64-bit onto the machine before installing our software. Every attempt to package what we needed just within the MSI failed because we were missing an assembly from one or the other architecture.

The other thing we looked into was shipping the output sqlcmd files that are produced when we “deploy” the project at build time, but those include the hard-coded server name of our internal development server (and its not a SQLCMD variable like the database name is), meaning we had to edit the .sql script during the server install. Again, that works but it seems like a bad idea in general.

Our final approach, and what we will likely end up doing for production if I can’t come up with something beter, is to produce create and upgrade scripts manually, based on the deployment outputs, then include a custom tool with our installer that executes the scripts (through SqlClient or sqlcmd or something similar) based on user interaction, but this seems to be defeating much of the purpose of the Database Projects.

Are there any other ways to build and package a VS2010 DB project for automated deployment, to different servers, that doesn’t involve installing 2 versions of SQL CE and shipping a piece of Visual Studio with our installer?

  • 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-07T14:10:21+00:00Added an answer on June 7, 2026 at 2:10 pm

    As far as I know, what you have suggested initially is probably best.

    Microsoft appears to have known this from the beginning, since they recommend and have instructions on how to install vsdbcmd on build servers without needing Visual Studio. You could easily extend this thinking, to installing on a Customers site.

    While you could come up with your own method of creating the output files and doing some post build process on them, you’ve just moved the complexity somewhere else and created another bit of code that needs maintaining.

    The installers for SQL CE aren’t that big and making it part of your MSI keeps things simple, packaged together and ensures you get the maximum functionality out of the database projects.

    I answered a similar question to this and link to a relevant MS article, in this SO question:
    Can I do database deployments, without installing Visual Studio or VSTSDB?

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

Sidebar

Related Questions

I have been using Visual Studio 2010 linked with Microsoft Test Manager using Team
I have been using Visual Studio 2010 SP1 for C++ in the default setting
I have been using nunit with visual studio 2010 on a windows 7 64-bit
I have been working in Visual Studio 2010, in asp.net, i am using Jquery
I'm using Visual C# Studio 2010 express and have been trying to batch update
I have been using Visual Studio integrated with Source Safe for years, when I
I have been using Visual Studio 2008 quite long but lately I am getting
I'm a long-time C++ programmer developing on Windows, and have been using Visual Studio
I have been using (and loving ) the jQuery intellisense for Visual Studio 2008
I've been using Visual Studio's property sheets for building my code and I have

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.