0

We have a few people here that use SQL and have quite a few queries we each individually use and share. I'm wondering if there's a solution to store all of these statements in a central repository where they can be used and copied but not modified. We did consider a folder on a network drive and storing the .sql files, but were wondering if there was a better solution out there.

  • We use tortoiseSVN. People will be able to change/improve the files but you have a log of changes. Also, everybody has a local copy. – vercelli Jul 28 '16 at 15:09
  • 1
    Go with Git - it's complex so your devs will love it :-) – Vérace Jul 28 '16 at 16:23
  • The world moves towards git. It offers many more advantages against any other version control system. But really, any proper version control system is better than a shared network folder. – ypercubeᵀᴹ Jul 29 '16 at 9:43
1

We've used SVN for this, seems to be quite popular as several companies I've spent time with used it. You should be able to control who can and cannot write/update files, as well as who can see what. And one of the more popular clients is Tortoise, as vercelli mentions.

  • This look like the perfect solution for our needs, as well as our code base! Thanks! – justiceorjustus Jul 28 '16 at 15:50
1

You can certainly use source control and create a repo for storing scripts in a similar way to the way you store code. However, I'm a big fan of WIKIs for this- it also gives you a platform for other documentation.

Check out Confluence.

1

Besides source control repositories, we've also used Sharepoint for SQL scripts. You can access it just like a network drive too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.