Red Gate forums :: View topic - My 5 cents tip (you might know it already, but just in case)
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation

SQL Prompt code snippets forum

My 5 cents tip (you might know it already, but just in case)

Search in SQL Prompt code snippets forum
Post new topic   Reply to topic
Jump to:  
Author Message
ivanrdgz



Joined: 11 Jul 2009
Posts: 10

PostPosted: Sat Jul 11, 2009 5:26 am    Post subject: My 5 cents tip (you might know it already, but just in case) Reply with quote

I like to combine the SQL Prompt code snippets with the SQL Server Management Studio templates. I always liked the template (kind of the same idea of snippets) but SSMS lacks the ability of "calling" those templates right from your query window. I mean, you must go to the Template Collection, find the needed template and from there double click on it or drag and drop.

So, now what I do? I just create snippets using the template format. For example:

USE <Database, varchar,>
go

select * from <Table, varchar,>
go

Once I call it, I press CTRL+SHIFT+M and the template parameter window will show up allowing me to enter the defined paramaters of the current template.

Hope this will help someone Smile
Back to top
View user's profile Send private message
aultmike



Joined: 08 Jan 2010
Posts: 26
Location: Canton, OH

PostPosted: Tue Jan 19, 2010 4:35 pm    Post subject: Reply with quote

Awesome tip!
Back to top
View user's profile Send private message
AndrewJacksonZA



Joined: 05 May 2010
Posts: 17
Location: Johannesburg, South Africa

PostPosted: Wed May 05, 2010 12:19 pm    Post subject: Reply with quote

Thanks!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group