Question

I am trying to figure out a way to have all of our random SQL scripts that we write under source control. I am already using SSDT for the database project. This is not for these sort of scripts. It is for all the other random queries that we run over time. Before we put them in a stored procedure. Or the other scripts that just don't really fit as a SP.

How can I bring my non SSDT Sql scripts under source control using Visual Studio?

Was it helpful?

Solution

Sure you can, that's what I do with my projects. Have a look:

Create a new Project, I use SQL Server Database Project because I generally end up adding more than just scripts.

enter image description here

Add items. Scripts in this case.

enter image description here

Go the Team Explorer and select GitHub (or TFS if that's what you're going to work with)

enter image description here

I'm going to create a new Private Repository.

enter image description here

Done!

enter image description here

Now Push the changes...

enter image description here

Finish!

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top