Is DesignDB In Use?

When Visual Studio Team System Database Edition opens a design-time validation database, it acquires an exclusive application lock on the DesignDB database using the following code. 1: EXEC @rc = sp_getapplock N’TSDATA’, N’Exclusive’, N’Session’, 0, N’dbo’; A side effect of acquiring the application lock is that only a single Visual Studio instance can open the…

1

Cleaning up DesignDB Leftovers

In the “DesignDB Location” blog post I described where the design-time validation database are created. The attentive reader would have wondered when design-time validation database file get cleaned up, since we create them at project creation time and attach or re-create at project open time. So when do they get removed? The answer: DesignDB files…

1

DesignDB Location

As you might know Visual Studio Team System Database Edition uses a local SQL Server database instance to validate the correctness of the code inside the database project. When you create a project a local scratch database is create for validation purposes, when you close project the database gets detached and when you re-open the…

2