How to automate sync between SQL server database and GitHub repository using Visual Studio

Siddhesh Kore 1 Reputation point
2020-08-17T10:20:18.063+00:00

We are using git with Visual Studio to interact with GITHUB.

Currently, we sync our SQL Database to GITHUB repository manually on a monthly basis but the client wants it on a daily basis. Do you know how we can automate this?

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-09-24T18:21:20.5966667+00:00

    Create a separate automation script (e.g., a batch script or PowerShell script) that executes the database backup script to create a fresh database backup. Next, adds, commits, and pushes the new backup file to your Git repository.

    0 comments No comments

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.