Setting up a SQL Script Library

tobz 161 Reputation points
2021-04-06T20:54:58.263+00:00

Hi,

I am trying to setup a library where I can store SQL scripts that can be accessed by other team members.

Please I need suggestions.

Thanks

Developer technologies Transact-SQL
SQL Server Other
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2021-04-07T06:21:36.277+00:00

    There is not really something like libraries in database world.

    But in SSMS you can create solution/projects which include several SQL script files.
    See
    Projects (SQL Server Management Studio)
    Create a New Solution

    1 person found this answer helpful.
    0 comments No comments

  2. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-04-07T07:40:40.843+00:00

    Hi Tobz,

    You can try to create the templates in the SSMS view menu->Template Explorer, and share with your team members. Please refer to SSMS Shared SQL Templates and Standard template in SSMS which might help.
    In addition, you can try to create a script repository stored in table with the PowerShell. Please refer to this article which might help.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.