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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:19:36+00:00 2026-05-25T11:19:36+00:00

I am trying to customize default TFS build process by adding a step where

  • 0

I am trying to customize default TFS build process by adding a step where a database is deployed using the database project. I followed [these steps][1] and the DB deployment works when the database name is hard code on the deploymanifest file on this step under InvokeProcess.

c. Set the Arguments property to “/a:Deploy /dd+ /dsp:Sql /manifest:DatabaseProjectName.deploymanifest”. You must replace DatabaseProjectName with the name of the database project that you want to deploy.

My question is, how can I change DatabaseProjectName to a variable and have it assigned dynamically so this BuildProcessTemplate can be used by other database builds or if the project is branched within TFS? I tried using the $(DatabaseName) variable used in SQLCmdVars with the project properties, but it does not seem to resolve.

  • 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-25T11:19:37+00:00Added an answer on May 25, 2026 at 11:19 am

    First, you can make the DatabaseProjectName a variable in your build definition by modifying the definition template to add the “DatabaseProjectName” (and “TargetDatabaseName” if the name of the db is going to be different) as Arguments. You can click in the Metadata property to expose the properties so you can set it to different names in each build definition. See this post on adding arguments.
    http://www.ewaldhofman.nl/post/2010/04/27/Customize-Team-Build-2010-e28093-Part-2-Add-arguments-and-variables.aspx

    Then, use the arguments in your InvokeProcess activity as variables in the string like below. You can override the database name in the manifest by including the /p:TargetDatabase option.

    /a:deploy /dd+ /dsp:sql /manifest:" & DatabaseProjectName & ".deploymanifest /p:TargetDatabase=" & TargetDatabaseName
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem. I am trying to customize default TFS build process
I'm trying to customize some TFS work items via the VS2008 xml editor, but
I'm trying to customize the javascript that Dashcode uses. So that I won't step
I am trying to customize the font of a UITableViewCell using the following code
I´m trying to separate a gridViewColumn into two rows. Im using default style for
I am trying to build a reporting system that allows users to customize reports
I'm trying to customize how my form is displayed by using a form_snippet as
I'm trying to customize the icons drawn by the GDirections object. I've got a
I am trying to customize a UITableView. So far, it looks good. But when
I am trying to customise the default query which is put in place when

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.