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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:03:06+00:00 2026-05-18T03:03:06+00:00

We are using the SQL Server Database project template with Visual Studio 2010. As part of

  • 0

We are using the SQL Server Database project template with Visual Studio 2010. As part of our integration testing, I would like to first launch a fresh deploy of the database. But short of manually right clicking the project and picking “Deploy”, it doesn’t seem to be a simple thing to get a fresh copy of the database deployed.

The documentation for this project type seems sparse to non-existent. Perhaps I”m looking in the wrong place. If possible, please include a reference to the how-to.

Update:

Our integration tests are written as unit tests in Visual Studio. So the goal would be to press the Run Tests button, and have the database deploy, and then the tests against it run.

  • 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-18T03:03:07+00:00Added an answer on May 18, 2026 at 3:03 am

    I managed to find a command line tool to do this. It’s called VSDBCMD.EXE and it comes with Visual Studio 2010. I first learned about it here (scroll to the bottom of the article), then I followed a link and found the details of how to get it installed on my server.

    In the second article, if you’re on a 64 bit machine, you won’t find the VSTSDB directory under Program Files… you’ll need to look under Program Files (x86).

    I followed the instructions to the letter (installed both the 32-bit and 64-bit version of SQL CE) and it’s working great. I basically take the output of a build from my SQL Server 2008 database project, zip it up and put it on the server, then run the deploy script.

    The first time I did this, the target database didn’t exist. The tool created the database and set it up nicely. Then I tried adding a column to a table in my project. I rebuilt the project and took the output and deployed as before, and it correctly altered the existing table, just like it would have done by right-clicking and selecting Deploy.

    Seems to be working well so far. Hope this helps!

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

Sidebar

Related Questions

I'm using NHibernate for a project. This project opens a SQL Server 2005 database
How to tell using T-SQL whether a SQL server database has the TRUSTWORTHY property
Using Microsoft SQL Server's database mirroring capability, can the mirroring occur between two clusters?
Today we're using a shared SQL Server database and that is perfect as I
When communicating to a SQL Server database using one of the typical systems, ODBC,
I'm using SQL Server 2008. My database is almost 2GB in size. 90% of
How do you restore a database backup using SQL Server 2005 over the network?
I'm using an Xml field in my Sql Server database table. I'm trying to
We're replicating a database between London and Hong Kong using SQL Server 2005 Merge
I'm trying to drop a SQL Server database using the following code: SqlCommand command

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.