May 19, 2016 at 9:40 am
When my team or I open a new query in ssms we'd like to see a documentation header to remind us to complete the docs.
Something only the lines of:
/*
Name:
Version:
Description
Notes
Change log
Test
*/
I've created a Template via Template Browser (on the View menu) but I'd rather set the New Query command to open this template rather than the empty query.
Any ideas if this is possible?
May 19, 2016 at 11:49 am
Try this:
May 19, 2016 at 1:16 pm
template functionality in the paid SSMS plugin ssmstoolspack.com does that.(~40 bucks as I remember)
it also is parameterized for variables.
for example, my template looks like this:
-- Created By: |CurrentWinUserName|
-- Create Date: |CurrentDateInYMD| |CurrentTime|
-- Description:
-- SET XACT_ABORT ON
-- BEGIN TRAN
-- COMMIT TRAN
-- ROLLBACK TRAN
and each new window has this format: note the variable substitutions.
-- Created By: mydomain\lizaguirre
-- Create Date: 2016-05-19 15:13:35.542
-- Description:
-- SET XACT_ABORT ON
-- BEGIN TRAN
-- COMMIT TRAN
-- ROLLBACK TRAN
Lowell
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply