Git Automation with SQL Tools and Visual Studio Code

Jason Price 20 Reputation points
2025-03-04T00:15:41.4833333+00:00

So here's my situation:

  • We have a database application created and maintained by a third party

We have access to the application to debug/extend that application to meet our needs

The third party software developer regularly modifies the application to add features and fix bugs

The application is managed via web interface

We have added the web portal directory to a self-hosted git repository. Changes made to those files, either by us or the developer, are automatically tracked and therefore can be committed and pushed to the repository. So now we want to do the same with the SQL application.

I have made a new repository for the DB application. I created a new database project, using the SQL Tools plugin to VS Code, and successfully imported the entire database schema. Synced the git and we now have a beautiful project with SQL code for the entire server.

Here's my problem:

If the developer makes changes, how do I track those? I can't seem to find a way to refresh the project with the server and for example see that they added a column to a table, or modified a stored procedure.

Am I missing something obvious

  Can this not be done with SQL Tools on Code; does it work with full Visual Studio
  
     Is there a 3rd Party alternative
     

Thanks in advance for any help!So here's my situation:

We have a database application created and maintained by a third party

We have access to the application to debug/extend that application to meet our needs

The third party software developer regularly modifies the application to add features and fix bugs

The application is managed via web interface

We have added the web portal directory to a self-hosted git repository. Changes made to those files, either by us or the developer, are automatically tracked and therefore can be committed and pushed to the repository. So now we want to do the same with the SQL application.

I have made a new repository for the DB application. I created a new database project, using the SQL Tools plugin to VS Code, and successfully imported the entire database schema. Synced the git and we now have a beautiful project with SQL code for the entire server.

Here's my problem:

If the developer makes changes, how do I track those? I can't seem to find a way to refresh the project with the server and for example see that they added a column to a table, or modified a stored procedure.

Am I missing something obvious

  Can this not be done with SQL Tools on Code; does it work with full Visual Studio
  
     Is there a 3rd Party alternative
     

Thanks in advance for any help!

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
147 questions
0 comments No comments
{count} votes

Accepted answer
  1. LiHongMSFT-4306 30,996 Reputation points
    2025-03-04T02:37:53.08+00:00

    Hi @Jason Price

    You may go to Visual Studio SSDT to manage database schema changes.

    SSDT has a built-in Schema Compare tool, which can compare the differences between the database and the local project with one click and generate incremental update scripts.

    Best regards,

    Cosmog


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.