Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Arunshyam
Starting Member
1 Post |
Posted - 2009-12-16 : 12:37:18
|
| Can i use user defined stored procedure as shortcut key?For example, the shortcut key Alt+F1 for sp_help and Ctrl+1 for sp_who... like that i want to give a shortcut key sp_select(This is a user defined stored proc)create proc sp_select(@tblname varchar(500))asexec('select * from '+tblname)now i want to use this procedure as shortcut keycan i use? or is there any other way to do this same?Arunshyam |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
RyanRandall
Master Smack Fu Yak Hacker
1074 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-12-17 : 02:03:44
|
quote: Originally posted by Arunshyam Can i use user defined stored procedure as shortcut key?For example, the shortcut key Alt+F1 for sp_help and Ctrl+1 for sp_who... like that i want to give a shortcut key sp_select(This is a user defined stored proc)create proc sp_select(@tblname varchar(500))asexec('select * from '+tblname)now i want to use this procedure as shortcut keycan i use? or is there any other way to do this same?Arunshyam
I dont see the actual benefit using thisDid you know that if you implement this you are returning ALL the rows from the table?MadhivananFailing to plan is Planning to fail |
 |
|
|
RyanRandall
Master Smack Fu Yak Hacker
1074 Posts |
Posted - 2009-12-17 : 05:48:10
|
| As tip 3 says: "If most of the tables you handle are large, you can tweak that stored procedure to show you just the top 10 or 25 rows to quickly see a few."I can see a small benefit, but it's so small I've never bothered to set it up myself.Ryan Randall - Yak of all tradesSolutions are easy. Understanding the problem, now, that's the hard part. |
 |
|
|
lionofdezert
Aged Yak Warrior
885 Posts |
Posted - 2009-12-17 : 06:57:13
|
| http://connectsql.blogspot.com/2009/07/execute-most-frequent-queries-with.html |
 |
|
|
|
|
|