| Author |
Message |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Mon Oct 08, 2012 11:50 pm Post subject: Do snippets support multiple variable expansion? |
|
|
When I read snippets, I assumed SSMS or VS style snippets, except with less PITA experience. Unless I am missing something, the snippets in SQLPrompt5 are a more limited replacement. Please tell me it ain't so.
I want to quickly be able to group by a given column in a given table and sort by the count DESC.
SELECT DomainLogin, COUNT(*)
FROM Proposal
GROUP BY DomainLogin
ORDER BY COUNT(*) DESC
So in this case there would be 2 varibles: column name (DomainLogin in this case) and table name (Proposal in this case).
It seems like SQL Prompt 5 supports $CURSOR$ for variables, but only a single one. And it definitely doesn't seem to support tabbing between variables, a la Visual Studio.
Am I wrong? |
|
| Back to top |
|
 |
Manfred.Castro
Joined: 23 Apr 2012 Posts: 122
|
|
| Back to top |
|
 |
rgelb
Joined: 25 Sep 2008 Posts: 26
|
Posted: Wed Oct 10, 2012 12:42 am Post subject: |
|
|
| Doesn't have the elegance of visual studio (or even SSMS) snippets, but I guess, it gets the job done. |
|
| Back to top |
|
 |
David Atkinson
Joined: 05 Dec 2005 Posts: 1080
|
|
| Back to top |
|
 |
eggnog
Joined: 25 Jan 2013 Posts: 1
|
Posted: Fri Jan 25, 2013 4:03 am Post subject: |
|
|
*bump*
Multiple $CURSOR$ positions with tab-between would be awesome.
Microsoft templates are lame because there is no autocomplete.
Thanks. |
|
| Back to top |
|
 |
|
|
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