Options

How about $PASTE$ to paste current clipboard into snippet

DaveBDaveB Posts: 11
edited April 11, 2011 3:33AM in SQL Prompt Previous Versions
It would be useful to write a snippet that you could paste the contents of the clipboard into it. The contents might contain the name of an object (table, view) that needs to be entered based on the context. For example:
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'$PASTE$') AND type in (N'P', N'PC'))
DROP PROCEDURE $PASTE$
GO

Comments

Sign In or Register to comment.