4

It took me almost one day to go through lots of articles and blogs to realize check-in driven continuous integration with SQL Server Database Projects (SSDT) using TFS and msbuild. Now once this is working properly, I would like to introduce versioning.

The database project's dacpac properties allow us to fill in a version in the format "x.x.x.x" that is getting published with the dacpac to Sql Server and can be queried there using:

select * from msdb.dbo.sysdac_instances_internal

This is nice but I wonder how to create something more useful and practical than a manually editable text for the version number? Of course the version number will never change as long it's up to developers to adjust it in the database project's properties...

Remembering how assembly version for example in c# project works, there is some magic increment possible by defining something like

"1.2.."

including the build number. How can this be done?

asked Mar 2, 2016 at 13:08
1

1 Answer 1

2

We finally solved this by adding the build numbers in short and long format to

a) The target database as user-defined extended properties

b) A versioning table

John K. N.
18.9k14 gold badges56 silver badges117 bronze badges
answered Aug 29, 2016 at 11:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.