April 6, 2016 at 11:36 pm
Comments posted to this topic are about the item Using Code Snippets in SSMS
April 6, 2016 at 11:39 pm
Very useful reference Luis, thank you!
😎
April 7, 2016 at 1:10 am
Thanks for this! I'm one of those guys who has a folder(s) with all the useful SQL snippets but when I need it, I usually forgot where I put them...
Having the Snippets in SSMS is just great and logical at the same time.:-)
April 7, 2016 at 5:33 am
Are there any examples for creating an MDX Snippet?
April 7, 2016 at 5:55 am
April 7, 2016 at 6:57 am
I have been looking for/wanting these in SSMS since I started using it, we have had such things in Homesite forever. Glad to hear it will be in 2012, can't wait till I upgrade.
April 7, 2016 at 7:16 am
SQLvis (4/7/2016)
Are there any examples for creating an MDX Snippet?
I'm sorry. SSMS still doesn't support snippets for MDX queries.
I'm not sure if Visual Studio has that capability.
April 7, 2016 at 7:17 am
April 7, 2016 at 7:19 am
john.w.walker (4/7/2016)
I have been looking for/wanting these in SSMS since I started using it, we have had such things in Homesite forever. Glad to hear it will be in 2012, can't wait till I upgrade.
You could update SSMS without updating your servers. Just saying 🙂
April 7, 2016 at 8:03 am
Thanks for the good article.
April 7, 2016 at 8:03 am
Great article Luis. I have learned something new today. I never played around with snippets but have a dozen ideas how they can make life easier.
-- Itzik Ben-Gan 2001
April 7, 2016 at 8:08 am
SQLvis (4/7/2016)
Are there any examples for creating an MDX Snippet?
That was my first thought. 😉
You just have templates. I just found this article: http://byobi.com/blog/2013/04/ssms-templates-for-ssas-developers/[/url]
-- Itzik Ben-Gan 2001
April 7, 2016 at 8:55 am
I once did that and tried using a newer version of SSMS with an older database. You sure I can use SSMS 12 with SQL Server 2008 R2 databases with no problems? I am stuck on 2008 until we can upgrade Microsoft Dynamics Navision - which I hope to get approved for next year.
April 7, 2016 at 9:06 am
You can definitely do so. I use SSMS 2014 and all of our instances are 2014 except one that is an old 2000 instance and it works fine.
This of course also worked with SSMS 2005 through 2012 too.
April 12, 2016 at 11:49 pm
Thanks for the information, very useful.
I also propose the use of this (external) tool, specifically designed to share the snippets among colleagues and team members: https://www.snip2code.com. It also comes with an handy plugin for Visual Studio, if needed.
All my scripts are stored there and I can easily reach them even when I'm in RDP on the servers of my customers who don't let me connect to the server from my local Management Studio...
Viewing 15 posts - 1 through 15 (of 34 total)
You must be logged in to reply to this topic. Login to reply