How to edit SSMS Script Table As templates?

旧城冷巷雨未停 提交于 2020-01-02 06:23:09

问题


In the context menu of a table in SQL Server Management Studio there are several items under the common item Script Table as:

SELECT to
INSERT to
UPDATE to
DELETE to
..

and the same for all objects, e.g. stored procedures, functions, etc.

How can I edit the templates used by that menus?


回答1:


You cannot edit the templates used by SQL Server Management Studio (which would be a nice feature).

You can create your own (parameterised templates) in C:\Users\Username\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell\Templates\Sql (for SQL Server 2008)




回答2:


What do you want to do with this?

Have you seen the SSMS tools pack which adds some right click options?



来源:https://stackoverflow.com/questions/4792576/how-to-edit-ssms-script-table-as-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!