August 13, 2007 at 4:06 pm
Hi:
In MS SQL Server 2000 and below, I was able to save my own stored procedure template that would then come up each time I wanted to create a new one.
I have been unable to find this feature in MS SQL Server 2005. Can someone please point me to where it is or confirm if it has in fact been removed.
Thanks
Anthony
August 13, 2007 at 4:12 pm
I use Ctrl_Alt_T to bring up the template explorer in SQLS 2005 Query Analyzer and can add and modify my templates from there. Is this what you are after ?
August 13, 2007 at 5:46 pm
Hi:
Thanks, yes I later found those templates but when I change the template for the:
. . . . Create Stored Procedure (New Menu)
I still get the same old stored procedure template when I go and try to create a new stored procedure.
Basically, I want to create my own template for a new stored procedure that I will always see when I try to create a new stored procedure from any database.
Thanks for any further help that you can provide
Anthony
August 15, 2007 at 12:19 am
I don't think that this is possible as SQLS seems to store these templates internally somewhere (anyone know where?). I guess the alternative is to create a new template folder, add a single template under this folder and then use the standard drag and drop from the explorer. This is a non-issue when you create sps using VS .NET installed templates as you can modify the default behaviour.
August 15, 2007 at 11:32 am
Thanks for further input:
I have used SQL Server 2000 for years now and I really like the feature where there is a button at the bottom of the stored procedure editor which says: "Save as Template"
After this button is clicked, all new SPs will start out with the template that you just saved.
Anthony
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply