Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
BRH 6
Index 6
Non-Clustered Index 5
Performance 4
#SQLServer 3
#TSQL 2
SQLServer 2
Clustered Index 2
Filtered Index 2
SSMS 2

Archive · View All
April 2010 7
March 2010 4
August 2010 2
May 2010 2
October 2011 1
September 2010 1

Are You Using Template Explorer

Apr 1 2010 3:22AM by Dinesh Asanka   

How many objects/features you have in SQL Server? It will range from simple Table, View to CDC, Encryption.

Let us says that you were asked to create a server trigger. Do note that DDL triggers do not have a user interface support in SQL Server Management Studio. (In case you do not know about DDL triggers doest matter. We will discuss about in a later day).

Since these are not heavily use objects, we will not remember this by heart. So, how to get the template for these types of objects?

In the view, there is an option called Template Explorer.

clip_image002

Following is the Template Explorer.

clip_image004

You can see that you will see almost all the objects that you can create in the SQL Server. When you double click the Create Database Trigger following script will be seen in SSMS.

--====================================

-- Create database trigger template 

--====================================

USE <database_name, sysname, AdventureWorks>

GO

IF EXISTS(

SELECT *

FROM sys.triggers

WHERE name = N'<trigger_name, sysname, table_alter_drop_safety>'

AND parent_class_desc = N'DATABASE'

)

DROP TRIGGER <trigger_name, sysname, table_alter_drop_safety> ON DATABASE

GO

CREATE TRIGGER <trigger_name, sysname, table_alter_drop_safety> ON DATABASE

FOR <data_definition_statements, , DROP_TABLE, ALTER_TABLE>

AS

IF IS_MEMBER ('db_owner') = 0

BEGIN

PRINT 'You must ask your DBA to drop or alter tables!'

ROLLBACK TRANSACTION

END

GO

So you have the temple to edit. Hold on, there is an easy way to edit this.

Press Ctrl+Shift+M together.

clip_image006

You can enter all the parameters in this dialog and it will update your script accordingly.

Template Explorer has templates for Analysis Service and SQL Server Compact edition as well.

clip_image008

clip_image010

Also, you have the option of adding new templates. Most organizations have different standards. For example, you may have different standard for writing SQL Server procedures. You can create a template for that and include it to your SSMS.

Tags: SSMS, Template_Explorer,


Dinesh Asanka
116 · 1% · 444
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Are You Using Template Explorer" rated 5 out of 5 by 1 readers
Are You Using Template Explorer , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]