Short Cut Query under SSMS

Experts,
DECLARE @TABLENAME NVARCHAR(1000) = 'TABLE_NAME' SELECT i.name AS Index_Name, i.type_desc AS Index_Type, i.is_unique AS Is_Unique FROM sys.indexes i INNER JOIN sys.objects o ON i.object_id = o.object_id WHERE o.name = @TABLENAME
I want to insert above query under Tools -> Options -> Environment -> Keyboard -> Ctrl+F1
How to get it done where I want to pass actual table-name inside hard coded string dynamically?
Any help please?
Thank You
Regards,
Kumar
Please do let us know your feedback. Thank You - KG, MCTS

No this is not what I asking for, you've specific something kinda find & replace (Ctrl+H), where as I was asking for insert/plug in query with blank string values and run dynamically from the query window after selecting the value.
E.g.
1.
Go to Tools -> Options -> Environment -> Keyboard
2. Under Ctrl+3 I wrote SQL Server as "SELECT TOP 10000 * FROM "
3. Restart SSMS to active above short cut query
4. Open Query Window (Ctrl+N), type
only table-name and select it now hit Ctrl+3, which resulted in top 10000 values of the selected table.
This is what I was trying to do with multiple tables/joining those tables, here is the query I was trying
SELECT i.name AS Index_Name, i.type_desc AS Index_Type, i.is_unique AS Is_Unique FROM sys.indexes i INNER JOIN sys.objects o ON i.object_id = o.object_id WHERE o.name = ?
Any idea how to achieve it?
Please do let us know your feedback. Thank You - KG, MCTS

Similar Messages

  • P2055dn short cut settings not working under windows 7

    Short cuts worked fine under xp, and all the latest drivers have been installed. Multiple pages doesn't work, although duplex does (but only on the basis of one page per side).  User-specific shortcuts aren't displayed, although trying to re-set them generates a message that they already exist.

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Short cuts under text in keyboard don´t work anymore.

    Hello there
    I use short cuts like for example: sc for sincerely. I did this under system preferences, then keyboard, then text. I add the short cuts there, make the little hooks and it worked. It still works with my Mac book but it does not work with my I-Mac anymore. I have no idea what to do. Anyone has an idea and some experience with this? Thank you very much!

    Which OS are you running on both machines? Mavericks removed the shortcuts and you have to manually restore them.

  • Keyboard short cut not working in iOS 6 on iPhone

    I just tried adding a new keyboard short cut on my iPhone 4S with iOS 6 and the short cut will not stay on the phone.  I can enter it and it is added to the list of short cuts until I go back one screen, then the shor cut disappears.  This worked fine under iOS 5 and still works fine on my iOS5 iPod Touch.  Any ideas how to fix this?
    Thanks
    Fred

    I have an iPhone 4 with current iOS.
    I've noticed this over the past few months. I always notice it on the FB app. My short cuts stop working. I will check email or note. I figured restarting the phone would fix it.
    Here's the thing. Obviously I use FB a lot, but this short cut issues never happens in text messages, Whatsapp, or email. Always with FB.
    In fact I noticed that I get sluggish typing performance typing using the FB app whether I use the keyboard short cuts or not.
    Just wondering if this common among iPhone 4 users.

  • Special character short cuts don't work anymore

    I have no clue what happened, what I may have done, or if something was installed that made the change, but short cut keystrokes don't work anymore for creating special characters (e.g. "option - (dash) and option shift - (dash) to create an mdash and ndash respectively). I've tried restoring defaults under keyboard shortcuts (sys pref > keyboard) and have Full Keyboard Access set to all controls, but nothing's changed.
    I've also scoured Google for the past half hour and have not been able to find anything. Any clues as to what's going on?

    I also tried rechecking Unicode Hex Input and the keyboard shortcuts still worked. So it looks like you need to have U.S. Extended checked to support keyboard shortcuts for things like – (mdash) and — (ndash).
    I don't think that should be necessary. Either US or US Extended should work fine on its own.
    In system prefs/language & text/input sources, check the box for Show Input Menu in Finder. That way you will know for sure what keyboard is active via the "flag" menu at the top right. Accidentally switching to Unicode Hex (which can be done via a keyboard shortcut) will disable your Option key for special characters (which is why I asked you to make sure only US was checked).

  • Is there a way to make a keyboard short cut to iTunes?

    Please inform me on the procedures necessary to allow a short cut in opening iTunes.

    doug pennington wrote:
    But in practice, what's the difference in using a key shortcut, or clicking iTunes icon, or using an Apple Script
    tell application "iTunes"
    activate
    end tell
    saved as a one click app to desktop? They all do the same with a click.
    I agree that a shortcut to iTunes is a rather moot issue, but as you see I did discover what may be a bug in that I can assign a shortcut to iTunes but it does not work.
    I actually have the opposite issue - I don't like iTunes and hardly ever use it and every time I DL an mp3 and select it incorrectly, it opens under iTunes, it takes a while before I can get rid of it.
    One day I will have to check my defaults and remove iTunes from the list entirely.

  • File names missing from thumbnails when short cut keys are used

    Across several Adobe products I use (Photoshop CS3 and CS6, Captivate 5 and 5.5) I don't see filenames under thumbnail images when I use short cut keys to open or save documents. This happens in Windows 7 and Windows XP.
    When I use the short cuts the file names don't appear in the document window - all I see is thumbnails with nothing under them.
    If I open or save through the menus I don't have this problem.
    It doesn't always happen, but occurs maybe 75% of the time. Sometime the file names will appear at first, but if I navigate to another location they disappear. This only happens in the thumbnail view in the window. Other views show the file name but as they don't show the thumbnail aren't as useful when working with images.
    Does anyone know what is causing this, and how I get the file names to appear?
    Thanks

    Here's a couple of screenshots of the problem (Photoshop CS4 and Captivate 5.5 running in Windows XP). I have the same problem with Photoshop CS3, and now CS6, running in Windows 7 on another computer. It's not so bad when you can see images, but when you're trying to find folders, or have PSDs that don't thumbnail, then it becomes a nightmare trying to open or save anything.
    Thanks,
    Alistar

  • Cc2014 premiere short cut key not function in Window 7?

    Hello All
    Just got my premiere CC 2014 update recently somehow all the Hotkey or short cut key is not function like "space bar C or V )
    the keyboard works fine "i can type"wonder if anyone have the same problem or know how to solve this problem
    thank you   
    Kelvin
    and I test with other adobe product photoshop bridge works fine, in the premiere interface i go under edit/ keyborad shortcuts on the selection tool razor tools slip tool etc none of them had the shortcut mark on the side
    I try to click and create a shortcut to it but unable to, what is going on I had a few project due very soon. please help

    I'm the only person that needs to save the Titles?
    I do it sometimes when I want to reuse a title in more than one project.
    When you export out the Titles, what happens then?
    Only then does it become a separate file, suitable for importing into other projects.  This is NOT necessary to export your finished video,  it's only necessary if you want to reuse the title in other projects.
    The Titles are photos and scrolling words, that are used together as a memoriam in different projects. So having the Titles as separate files on the HD is pretty much essential.
    That's more than just a title, which in PP usually contains only text.  For something this complex, it might be better to create a base project or template that contains all the elements you want to reuse, and then start new projects with that, renaming to a new project name immediately after opening the template.
    For example, I have an HD Wedding project that contains all my sequences, graphics and titles ready to go in organized bins.  I start by opening that project and do a Save As... using the couple's last name.  That way each new project starts with the elements I need and I don't have to recreate them all the time.

  • Short cut change icon is disabled and icons are generic

    (I am not sure if this is correct forum, I don't know if this is for Visual Studio Setup Installation projects or for Installing Visual Studio itself)
    I've created a Setup/Installation project for a WPF .NET 4.5.2 application and everything works fine with the exception of the program Icons.
    After I run the Setup - the short cut on the Desktop and Start menu (Win 7 and Win 8.1) shows generic Icon and when I right click and select properties the Open File Location and the Change Icon buttons are disabled, but if I click on the short cut it runs
    the program.
    In the Setup project I specified which icon to use from the exe program and I even added an icon do the project and pointed to this icon, but the icons still show up as generic.
    Any advise on how to fix this?
    Thank You
    Peter

    Hi pczurak,
    By reseraching, I found this thread in StackOverFlow has the same issue with you.
    http://stackoverflow.com/questions/2041291/how-to-change-windows-applicatoins-default-icon-in-setup-project?answertab=active#tab-top
    From the answer, we could show up the desired icon in the following way.
    right-click on the Deployment Project
    pick menu item View > File System
    in the File System window, find the shortuct whose icon you want to change (for example, under "Users's Programs Menu")
    go to the shortcut Properties (right-click and pick "Properties Window")
    go to Icon
    Browse...
    change "Files of type" to *.exe
    browse to and select your "primary output"
    OK, OK
    And you could also change the icon in the Control Panel's "Add or Remove Programs" list.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Keyboard short cut problems

    I updated my Mac and everything was fine until i had to restart it. My Photoshop's keyboard short cut became all random like this:
    I tried restarting my computer again but it has not changes. The most weird part is that when i tried to change the short-cuts, it won't work even though i clicked on accept and "ok". Is there a way i can turn this back? It wasn't like this when i first got this back at November.

    quote from:
    https://discussions.apple.com/message/23471905#23471905
    1) While in Photoshop, go to 'Keyboard Shortcuts' under the 'Edit' menu in the Mac's menu bar. The 'Keyboard Shortcuts and Menus' panel opens.
    2) With the 'Keyboard Shortcuts' tab selected (as opposed to 'Menus'), double-click 'File' (has a triangle next to it) under the 'Application Menu Command' and select/highlight the 'Open...' command.
    3) Without editing the key shortcut in any way, click the 'Accept' button to the right. Then 'Okay' to close the panel. This successfully reinstates the 'Open' keyboard shortcut.
    4) At this point, you're probably thinking, 'My god, I'm going to have to repeat this process for every single keyboard shortcut...'. But no, simply 'accepting' the 'Open' command appears to successfully reinstate every other keyboard shortcut too!

  • I can't find the "send a short cut to the desktop" request. where is it?

    In IE, under "file", there's a "send a short cut to desk top" .
    I can't find how to do this with Firefox.... how do you send a short cut to a page to your desk top??????

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (113428)

  • Keyborad short cut Request

    -Virtual Copy
    and
    -Export Presets ( I know there is one for export, but this brings you into the whole export dialog box, it is then a second mouse movement to get to your presets. I want to reach the PRESETS with the short cut.)
    Ability to customize shortcuts. I can do this in Corel Photo Paint. I love the ability to assign what ever function I want to an almost unlimited set of keyboard short cuts

    Already read them thanks and LR is not that a big step forward on from PS, it's a step sideways as it just has complexity in different areas and is way too flawed at the moment with too many GUI/UI issues. Has promise though. Plus LR+PS are different tools for very different sorts of job. Fundamentally, PS is an image editor/creator and LR is a photo developer.
    You still missed the point about the GUI and to use your iffy building analogy, no matter how well the flow of people is designed, if the signage is hard to read or locate as they are under mats, it's completely useless, as with airports and conference centres you really need to know specific destinations. Plus if it flows nicely but all the parts are an unnecessarily long way apart then that's no good either. That's a LR problem too, to edit a filename you have to move away from file you are working on, a terribly unintuitive and illogical workflow.
    Besides it's a deeply flawed and pointless analogy as PS is an incredibly complex tool with a workflow that is multidirectional, unlike picking up your luggage. It is more like an airport, a bus station, a train station, an office, a home, a factory, a school... all in one package and where all the rooms in these buildings are possible destinations. Though when you know what you want from it, it's a doddle to use. Just like you easily know what to do when one is in a restaurant, a school, a bus station or at a library.
    PS flows very nicely to my mind. It does what it does, exceptionally well hardly an appalling UI at all. Mind you v3 wasn't so nice to use and CS2 is essentially the same tool. Albeit with a vastly GUI/UI.
    Maybe you want just a simple image developer, if so PS is the wrong tool for you, not that it is a wrong/bad tool per se.
    It's very easy to do effective design for one very specific and simple task, say moving people from a plane to luggage collection, not really comparable to something incredibly complex, like software design. There's also no need to them to go back and undo their footsteps as they have decided they don't need that luggage any more as their client they were meeting downtown, has now decided to have a meeting in the Flight tower and they now also need to get/find safety kit to wear whilst running across the tarmac, with no signage as that is not how passengers normally behave.
    LR as it stands has dramatically slowed down my workflow, due to it's clunkyness, slowness of operation, design bugs and it's different just to be different, keystrokes. LR may be cheap but I may well stick to buying the new CS3. And to revisit your iffy analogy, LR needs to be more consistent in it's Module's architecture to be like a well designed building. At the moment there's variation where there needn't be any. Why do I have to go to develop to review history, shouldn't that be in Library as well. It's almost like changing rooms to turn off the light of the one I was just in.
    I would also prefer a Grid view option in Develop as that is easier than the current methods of developing multiple images. I just select all the images I want to develop and can add or remove as I go along. I prefer a big grid to the thumbnail option, preferably with a large preview on a second monitor of one image - like a combination or LR's Library, LR's Develop and ACR's window.
    Constantly swapping modules for basic/simple functions is not exactly an improvement on LR's centralised paradigm. Worse if anything. Not always obvious which module you are in either and Cntrl+tab is the normal way to cycle through windows/files/nodules in a programme. But LR has clumsy [fixed] shortcuts instead.
    You still haven't made any valid suggestions as how to improve on PS or even given a valid reason why adding customisation to shortcuts is a step back. Adding customising always benefits the end user, esp. as end users vary in their needs.

  • Keyboard short-cuts and comment-enabled PDF's

    I'm running AR7.0.9 under SuSE 10.1 and I have the following problem when working with a comment-enabled document, such as the JavaScript reference manual. Once I've used the highlighting tool, whose keyboard short-cut is U, I find that I can no longer enter the letter U when composing a note. Similarly, once I've added an attachment, whose keyboard short-cut is J,
    I can no longer enter J into a note. Is this a known problem?
    Or is there something wrong with my setup?
    James Quirk

    HI all,
    I did't get any help related to this issue.
    Can anyone respond.
    Shaji

  • Keyboard not storing short cuts and phrases anymore in iOS7?

    I updated to iOS7 and realised that the keybord shortcuts that I used to have in my iOS6 no longer work on the iOS7, Even if I did try to enter a shortcut manually by going into the keyboard section in the settings, it does not store the short cut. It can get really annoying once you have gotten used to the short cuts while texting and I happen to text a lot. Any of you guys have a solution for me?

    Hey Mani, I also have this issue but with my I-Mac since I updated to Mavericks. And it also freaks me out... But with my Mac Book and I Phone it still works under IOS7.. strange.. So far no one responded.. So I will see if there is a solution for this.

  • How do I get the row of short cuts to website to show up on Firefox 4?

    I used to have a row of website short cuts that were place under the website address. (The ones that when you clicked on them, take you to their designated website) Where did they go? I can't figure out how to make them show up in Firefox 4.

    You're welcome.
    You can follow the daily threads on the MozillaZine Builds forum to keep being informed about changes and issues in the current nightly builds.
    That helps to see what has been changed and how others respond to those changes.
    Those changes will be included in the next beta release of Firefox 4.0
    See Firefox Builds • mozillaZine Forums: http://forums.mozillazine.org/viewforum.php?f=25
    [http://forums.mozillazine.org/viewtopic.php?f=23&t=1955405 The Official Win32 20100725 Trunk build is not yet out.]
    [http://forums.mozillazine.org/viewtopic.php?f=23&t=1954409 The Official Win32 20100724 Trunk build is out.]

Maybe you are looking for

  • How do I change the sort order in the file picker?

    Hi there, I've recently hit a problem with the Save and Open dialogs in Mavericks. Some how I have changed the sort order within the Column View so that it sorts by modified date and no longer by name. Unfortunately I can't work out how that happened

  • Adding date to file name

    I would like to have the dates printed on the back of my photos by my developer. Is there a way to automatically add the date to the file name? If so, can this be done by batch vs. individual photos? Thank you, Amy

  • Apple tv works for iphone4s not ipad2 over wifi

    The Apple tv has all the latest updates as do the iphone 4s and ipad2. The ipad 2 intermittantly sees the apple tv and gives me the option to mirror the ipad etc. The iphone4s ALWAYS sees the apple tv and allows me to mirror it. Why is the ipads conn

  • ORA-23313 Error

    Hi, I am trying to set up a replication scheme between two databases and I have run into a problem when trying to set up my master group at my materialized view site. I am getting an ORA-23313 error. ORA-23313: object group "PUBLIC"."QD_DYLAN_REPG" i

  • Write Spaces

    Hi guys i m using titles to print any title but i need to put some spaces in both sides of the message , i was thinking in something like that  : concatenate  space(20) 'welcome to' space(12) into tit write tit. but it doesnt work , how can i achive