question

xnl28 avatar image
xnl28 asked

How to reference the reference project configuration settings from PostDeployment SQL script

My VS2010 solution several configurations (Debug, Release, etc). One of the projects is a database project. In the PostDeployment script in this project, I want to perform a different action depending on the which particular configuration is being deployed. For example, I want to do something like this in the PostDeployment script: IF $(ConfigurationName) = 'Release' .... -- Do some T-SQL here ELSE IF $(ConfigurationName) = 'Debug' .... -- Do some other T-SQL here I don't know how to reference the VS solution settings from the T-SQL SQLCMD script. Can someone explain how I do this?
configurationvisual-studio-2010deployment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Magnus Ahlkvist avatar image
Magnus Ahlkvist answered
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.