Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Message Snippet Expand / Collapse
Author
Message
Posted Friday, March 22, 2013 3:06 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 8:51 PM
Points: 7,140, Visits: 12,763
This enhancement's utility may be limited to folks like myself that post on SSC often but it would make posting easier and (I think) could improve the experiences of those asking questions with those omissions we so often see (no DDL, etc.) or whose answers we end up typing so often (a link to Gail's Managing Transaction Logs article), so here goes...

The 'Snippets' feature would appear under the IFCodes Shortcuts to the left of the Message box on Post.aspx in the form of Hyperlinks. The links would write common 'Snippets' of text to the message box. A new user would not have any 'Snippets' initially but could configure new ones through their Control Panel or by clicking a 'Configure Snippets' link shown in the Snippets section to the left of the Message box. A Snippet would consist of a Name (limited to maybe 20 characters) and Text (unlimited, or limited to a reasonably large number of characters).

An example of a snippet would be:

Name = ask for DDL
Text = Please provide:

1. DDL in the form of CREATE TABLE statements to create your sample tables
2. DML in the form of INSERT INTO statements to populate the sample tables
3. The expected results of your SELECT statements based on that sample data
4. Most importantly: what you have tried so far.


If I were to configure this Snippet then ask for DDL would appear as a Link in the Snippets section under the IFCode Shortcuts section. Similar to an IFCode Shortcut, if I clicked on ask for DDL the Snippet text (shown above) would be inserted into the Message box at the cursor-position.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1434523
Posted Monday, March 25, 2013 9:14 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 10:58 AM
Points: 31,364, Visits: 15,827
I could do the snippet piece, but asking for parameters isn't a capability I have. It's not built in and not sure we could build it.

However I could had a shortcut of sorts that would appear there. Let me try something.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1434972
Posted Monday, March 25, 2013 9:16 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 10:58 AM
Points: 31,364, Visits: 15,827
Please provide: 1. DDL in the form of CREATE TABLE statements to create your sample tables 2. DML in the form of INSERT INTO statements to populate the sample tables 3. The expected results of your SELECT statements based on that sample data 4. Most impo






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1434975
Posted Monday, March 25, 2013 9:17 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 10:58 AM
Points: 31,364, Visits: 15,827
didn't quite work. The replacement doesn't respect cr/lf

Hmmm, I'll see if we can add someting that makes sense.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1434976
Posted Monday, March 25, 2013 11:12 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 8:51 PM
Points: 7,140, Visits: 12,763
Thanks, Steve! I was not sure where this would land on the priority list but it sure would be cool. I appreciate you considering the feature.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1435065
Posted Monday, March 25, 2013 12:45 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:32 AM
Points: 13,327, Visits: 12,817
I agree!!! This would be an awesome addition. I far too often find myself typing in the same things over and over again. It would be great to have a place on the site for this stuff.

_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1435095
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse