This post is provided by Premier Field Engineer JJ Jacob who takes a look at the benefits of SQL Server Objects as software artifacts.
A recent customer engagement revealed several pain-points. One of them is the issue of not being able to pinpoint the exact database schema the development team delivered to the production team.
The issue is about pointing to the one version of truth with regard to SQL deliveries into production.
What compounds this issue is that software delivery is made through updates to a file share, which is prone to the following risks:
- Files are overwritten
- There is not auditing or traceability as to who made the changes.
- Furthermore, there’s no traceability as to which bug or feature the changes were made.
We started thinking as to what technology could address this. Two issues we needed to solve were:
- Making the Database schema an artifact of version control – this could be easily solved by Team Foundation Server as the repository
- The bigger problem was to get a representation of the schema into a set of version-controlled artifacts.
We find that Visual Studio along with SQL Server Data Tools, works very well with Team foundation Server’s version control system.
With this approach we were able to demonstrate:
- Visual Studio’s capability to create a SQL solution, and import a database representation of it’s objects into *.sql file
- Checking in that solution file into version control and tracking changes and comparisons between versions.
- Comparing versions using schema compare between the solution and the live DB, or between schema snapshots
- Ability to publish or deploy to Test/Dev environments.
The other value prop we realized was that DBA’s prefer to wok on SQL Server Management Studio, making changes to a DEV database. At the end of the day, the Lead DBA had the capability to import the final DEV DB and check the schema changes in.
Visual Studio along with SQL Server Data Tools, in tandem with Team Foundation Server enables this scenario of tracking SQL schema as software artifacts – leveraging capabilities that are in-built in Visual Studio, SSDT and TFS.
Premier Support for Developers provides strategic technology guidance, critical support coverage, and a range of essential services to help teams optimize development lifecycles and improve software quality. Contact your Application Development Manager (ADM) or email us to learn more about what we can do for you.
0 comments