SQL files open new SSMS instance

I know there is already a thread on this but it is old. When ever I double click on a .sql file it opens a new instance of SSMS. This is annoying and not the behavior that I'd expect. When the new instance opens the file will be there BUT I get an error
message, "There was a problem sending the command to the program."
I'm running SQL Server 2012 SP1 on Windows 7. Does anybody have a modern fix for this issue?

Hello,
Please try the below procedure, but first backup the registry.
Run regedit and go to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssms.sql.11.0\Shell\Open\Command
Edit the default value to add "%1" to the end.
The value should now look like the following:
"c:\Program Files\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\ssms.exe" /dde "%1"
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Open tab doesn't work when hitting the + or going to file, open new tab. automatic ones will work, but not manually.

    does not open tabs by hitting the + or by selecting file, open new tab. i am operating under mac os x software and have updated firefox twice now with no resolution to this issue.

    Many users have discovered this problem (in Firefox 30 and higher) is caused by Conduit add-ons, such as a Conduit plugin and/or a "Community Toolbar" extension.
    You can check for and disable extensions on the Add-ons page. Either:
    * Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    (1) In the left column, click Plugins. Set nonessential plugins to "Never Activate".
    (2) In the left column, click Extensions. Then, if in doubt, disable.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that help with the "+" button? If so, could you name the specific plugin/extension that caused the problem?

  • EA2 right click to open SQL file/opening file creates new connection

    EA2, win XP pro, sp2
    1. Right click to open an existing SQL file missing from the context menu.
    2. Even after I set my default path to look for scripts, it opens in Documents and Settings\USERID\Application Data\SQL Developer
    3. When I open a new file or script, it creates a new tab in which I have to pick the connection. In 1.2, it used the connection of the tab I was in. Am I missing a setting for this?

    1 I suspect the Open File item might be missing because it is integrated with version control and they have left that outUse the main toolbar / menubar Open. Ctrl-O also works.
    The local context menu "Open" was removed not due to version control but to reduce the clutter on worksheet's toolbar & menubar.
    Though it might have been convenient, I think when you get used to, you'll appreciate that we want to save the space for other really context sensitive menu's for worksheet.

  • Downloaded excel files opened in multiple instances

    Whenever I download then open the file from Firefox, it opens in a new Excel instance. Hence I am not able to move data to other workbook I had opened previously, and have to save it first, then reopen within the same instance. How do I force it to open in the same instance?
    I didn't have this problem before with Firefox, it worked just how I wanted. But suddenly something changed around 1 month ago (unknownly) and I have to go through extra step to save then reopen every time. I have searched the web for similar problem but none helped.
    I don't have this problem with Excel itself. (when double click on the files it always open in the same instance) Also, the same problem doesn't exist on my other computer (With the website/Firefox), so I'm just puzzled which part caused the problem. I've tried to reinstall Firefox, restore everything to default. But problem still existed. I don't recall changing any setting when this problem started to occur. Any help is appreciated!!!!

    I know going through the route "open file" in EXCEL can assure me files are open within the same instance, but I want to eliminate this extra step. As mentioned, previously, this can be done without any problem. I'm just repeating the same step as done before, but suddenly, all these new downloaded files stopped open in the same instance, and I don't know which setting is off and caused this.

  • EA2/EA1 - Exception with PL/SQL files open

    When opening a PL/SQL file (.pkb, .pks, etc), I get the following exception appearing in the Logging Page's Log tab multiple times:
    SEVERE     151     0     oracle.dbtools.raptor.utils.Connections$ConnectionKey     null
    This does not appear to affect the functionality, but looks as though it is generated simply by moving cursor over the contents of the file - generating lots of exceptions the same as the first, with the exception of the Elapsed column which is normally around 30.
    theFurryOne

    My experience with this error seems bound to local files only. As of yet, I do not see this issue when I edit a package that exists in the database. I usually edit my files locally with sqldeveloper, then use sqlplus to compile the pks/pkb files. Editing local files will throw thousands of these errors (FATAL, by the way) ... even .sql files throw the same error for me.
    I hope this helps isolate the issue. It seems as though sqldeveloper is expecting a connection to the database object regardless if the object being edited is local or within the database.
    This is the beta release of sqldeveloper.1.5.0.51 Build MAIN-51.70. Great work, BTW!! I couldn't wait =D

  • Do we need run catbundle.sql file for new databases.

    dear all,
    i have doubt over execution of catbundle.sql or not?
    scenario:
    i have insatlled 10gr2 on rhel5 and applied patchset 4 (10.2.0.5) and applied Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update
    after this i have create fresh database.
    now,
    in Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update document it has specified in belwo section
    3.4 Post Installation Instructions for Databases Created or Upgraded after Installation of PSU 10.2.0.5.2 in the Oracle Home
    These instructions are for a database that is created or upgraded after the installation of PSU 10.2.0.5.2.
    You must execute the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" for any new database only if it was created by any of the following methods:
    Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    Using a script that was created by DBCA that creates a database from a sample database
    Cloning a database that was created by either of the two preceding methods, and if the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" were not executed after PSU 10.2.0.5.2 was applied
    Upgraded databases do not require any post-installation steps.
    so do we need to run catbundle here or not.
    since i have created fresh database after applying 10.2.0.5 PSU2 why does it required.
    opatch output:
    [oracle@RG615 ~]$ opatch lsinventory
    Invoking OPatch 10.2.0.5.1
    Oracle Interim Patch Installer version 10.2.0.5.1
    Copyright (c) 2010, Oracle Corporation. All rights reserved.
    Oracle Home : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1
    Central Inventory : /prd/crm/swbcrmdb/usr/oracle/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 10.2.0.5.1
    OUI version : 10.2.0.5.0
    OUI location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/oui
    Log file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-05-03_11-41-34AM.log
    Patch history file: /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-03_11-41-34AM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
    There are 2 products installed in this Oracle Home.
    Interim patches (1) :
    Patch 10248542 : applied on Tue May 03 07:32:29 BST 2011
    Unique Patch ID: 13292123
    Created on 25 Dec 2010, 23:11:24 hrs PST8PDT
    Bugs fixed:
    6402302, 9713537, 8350262, 9949948, 8394351, 10327179, 8546356, 9711859
    9714832, 9952230, 10248542, 8544696, 9963497, 9772888, 8664189, 10249537
    7519406, 9952270, 8277300, 9726739
    OPatch succeeded.

    Pl post the output of view DBA_REGISTRY_HISTORY - see MOS Doc 605795.1 (Introduction To Oracle Database catbundle.sql)
    Was the database created using DBCA or manually using scripts ?
    Srini

  • Why is overwritten file opening new file for all backed up versions of file?

    I accidentally overwrote an important file by accidentally selecting the wrong file to be replaced.  I was at a client's premises when it happened and the external time machine drive was not connected. So there should be no problem because my time machine hard drive was at home with the old file in the time machine back ups right? Wrong.
    When I go into time machine, whether through searching in the individual folder or "Enter Time Machine" method, it always opens the new overwritten version of the file!
    The original just has to be on the external Time Machine hard drive! It wasn't connected to the computer when I overwrote the file on my computer. So why are all versions of the back up opening the new version of the file and not opening the back versions of the file?! What good is Time Machine if it is opening new versions of the overwritten file when you want to open the old versions of the backed up file?

    tryb4buy wrote:
    Am I the first person ever to try and recover overwritten files with Time Machine?
    Of course not. Plenty of people use TM to recover files or restore entire disks regularly. What you are describing is very strange, which suggests that either there is some rogue bug in TM, or that events have not occurred in quite the way that you think or are describing.
    Clearly, there is no way that a file can magically appear on your backups before you created it, when the drive is not attached. So the only way it could have got there is for TM to run a backup and somehow corrupt all versions with the new file. So did TM run a backup before you attempted a restore?
    How far back do your backups for this file go? How often did you attach the external disk to allow TM to run backups?
    What version of OS X are you on?
    Are you using the TM application to browse through your backups, or the Finder?

  • Photoshop file opening new tab

    hi....
    i'm trying to work with a photoshop file in psd format (saved as a copy, rather than as layers), which i've imported into fcp. parts of it are transparent, and i would like to be able to set motion and distortion keyframes to correspond with those on the other clips below it on the timeline. but when i double click on it, it opens a new tab on the timeline, where i can only set keyframes by double-clicking on "layer 1".......is there anything i can do to avoid having to work with this other tab, because it's getting confusing trying to coordinate it with other clips, when i'm not able to see all keyframes marks at the same time. i tried saving the file as a jpeg or a tiff in order to be able to manipulate it like any other clip, but when i do that, the transparent sections are saved as black or white, rather than transparent. i would greatly appreciate any help on this.

    Do what you're doing - the trick is once you have the psd opened in it's own tl, with all the layers showing.
    Right there - make a new bin in the browser - drag all the layers from the tl to that new browser bin.
    Now you can go hog wild with the different layers and add them to your main seq.
    Another trick is to right click the layer you want in the psd tl and choose open in viewer, then add that to you main tl.
    fwiw I prefer to get all the layers into a bin in the browser and go from there.

  • Firefox won't download files-Opens new page and just stops whenclicking on download icon or address.

    Suddenly, Firefox won't download a file from a clickable icon or web address. This seemed to occur after installing HideMyAss. When I click on a download address, or an icon, the page changes, (as opposed to just starting the download) attempts to load (status bar goes to halfway) and then nothing, it just sits there. If I try to download a torrent file, the same thing occurs, although I can download it using option+click. Any suggestions? Thanks in advance. Doug

    Reinstalled FF with new profile to check and it still performed the same problem. Couldn't download files from links sent to me through email program that I use either.
    Eventually, after a quick 5 hour reinstall, FF is now working.
    Until I figure otherwise, I'd take a pass on Hide My Ass.
    SweetDoug
    •∆•
    V-V

  • Unable to open *.SQL files is v2.1

    Hello,
    I just 'upgraded' to v2.1 from Version 1.5.0.53 and I can no longer open any of my SQL files correctly. They open in v2.1 as unreadable characters. Any ideas?? I have had to go back to Version 1.5.0.53 so that I can continue to work. Any comments appreciated. Thanks.
    PS the *.sql files still open correctly in Version 1.5.0.53

    Hello Evita,
    I checked the properties for the *.sql files:
    -opens with SQL Developer
    -Content Type: Text
    Still the same result. This does not make much sense to me as I have been using SQL Developer for a couple of years and have never had an issue with opening the SQL files.
    Any further commenst appreciated. Thanks again.
    Alun
    PS I also tried various fonts in the Code Editor preferences ... no luck.
    PPS if I cut & paste into the code editor, then save via v2 ... re-open in v2 it works (it does not re-open correctly in Version 1.5.0.53!!!). So if I go through the 100s of SQL files this is my migration strategy ;-) Ouch!
    Edited by: AC on Jan 19, 2010 8:58 AM

  • Open in new tab not working properly. How can I get it to stop opening new windows?

    Firefox recently updated and my + open new tab button was gone. I found and downloaded the extension to put it back on, which is now gone but never worked. I have checked options>tabs and it is supposed to be opening new tabs. I can click file open new tab and it still opens everything in a new window. I've loved firefox for several years but if this isn't fixable quickly I'm gone. Can anyone help?

    You definitely should not need an extension to get a new tab button!
    Do you have any tab related extensions now, such as Tab Mix Plus or Tab Utilities?
    Try resetting your toolbar layout by renaming the file that stores customizations. Firefox should returns to the default settings for toolbars and windows. Here's how:
    (1) Open your personal settings (AKA Firefox profile) folder
    Help (or Alt+h) > Troubleshooting Information > "Show Folder" button
    (2) Switch back to Firefox and exit the program (e.g., File > Exit)
    (3) Wait a few moments for Firefox to finish updating files in your settings folder, then rename '''localstore.rdf''' to something else, like localstore-bad.rdf or localstore.old. Alternately, you can delete the file.
    (4) You're done with your profile folder and you can restart Firefox now.
    Any luck?
    With respect to links launching in new windows instead of tabs, the checkbox in the Options dialog should work but there is an exception for scripted windows that have certain parameters set (e.g., dialog style with no toolbars, or a specific size). Launching a link out of a dialog, which is not allowed to have extra tabs in the window, also will launch either a new window or be added to an existing window. Any chance the problem is related to those situations?

  • Opening new window or tab to the same site being viewed on another tab/wind

    I am a new MacBook user. In my past experience with Internet Explorer, I would often open a new window to the same site that I was already viewing through File>Open New Window. This method was often preferable to opening a new window through the IE icon and loading to the homepage. I have gotten quite used to this pattern and am trying to figure out if there is a way to open a new tab or window to the same page that I am already viewing. I know how to open a new tab or window, but rather than going to the same page as in IE, the new tab is blank and the new window goes to the home page. I am using Safari and Firefox and can't figure out how to do this in either browser.

    Hi,
    Try this, I think it works for both Safari and Firefox (not 100% sure on Firefox but think so...)
    Press command+l (lowercase L) and then press commandoptionpress return. That will open a new window with the current webpage in the new window. To open a new tab with the same details, omit the option key in the second step.
    Command key = one with the Apple symbol
    Option key may be called Alt on your keyboard.
    Hope that works!

  • How to open multiple sql files in only one ssms instance

    how to open multiple sql files in only one ssms instance, I can't get anything to work that I find online..I hope you can help us.

    I tried opening two files but selecting and hitting enter. it opens one SSMS and two tabs.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • SQL file will not open in SSMS on double-click (or jump list)

    Hello, all.
    I am running SQL Server Management Studio 2008 on a Windows 7 Enterprise machine here at work.  I am not sure when this started happening, but now, for some reason, when I double-click on a SQL file in Explorer, or from the jump list for SSMS (which
    I have pinned to my Windows 7 task bar), SSMS will open, but will not load the file in question, nor will it bring up a logon screen to connect to a DB.  I tried unassociating the .SQL extension and then re-associating it using "Open With" and it worked
    the first time (from the Open With), but then immediately reverted back to its old behavior.  Very annoying.
    For now I just open SSMS first (which pops up a logon screen and things proceed normally), but that kind of defeats the purpose of having a jump list or a file association.  Has anybody run into this before and can anybody suggest a fix or what's
    wrong?
    Thanks in advance for any wisdom anyone can provide. 

    Hi Mike,
    I can provide solution if you can tell me the registry value(HKEY_CLASSES_ROOT\sqlwb.sql.9.0\Shell\Open\Command). I believe there is an extra %1 which is causing this.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog: http://blogs.msdn.com/blakhani
    Team Blog: http://blogs.msdn.com/sqlserverfaq
    Let me see if I can get my IT guys to temporarily grant me registry access.  As I said above, it's locked down, but maybe if I ask
    reeeeally nicely :-)  I will keep you posted.  Thanks!
    EDIT: The IT gods have smiled on me.  The value for the key above is "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe" /dde
    Not sure if that helps, but there you go.  Thanks! 
    Mike Loux
    Certified Practicing Geek
    mike dot loux at gmail dot com
    Replying to myself in case in-place edits don't trigger a "somebody updated this thread" email.  :-)
    Mike Loux
    Certified Practicing Geek
    mike dot loux at gmail dot com
    Hey Mike,
    Actually edit didnot trigger the email :)
    Change that to
    "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe" %1 /dde
    (add %1 and that should fix this forever)
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog: http://blogs.msdn.com/blakhani
    Team Blog: http://blogs.msdn.com/sqlserverfaq

  • Is it possible to open a new Worksheet without creating a new *.sql file

    Hello Community,
    Declaimer: It may be a trivial question. I just willing to make SQL Developer my default day to day tool.
    I is possible to open a new Worksheet without creating a new *.sql file. Like in an MS Word. If I just need some space to write something and than destroy the file without saying. I can quickly click < ctrl + N > and get the space.
    In SQL Developer to get a new "space"/work sheet i
    -a- < ctrl + N >
    -b- choose "SQL File"
    -c- confirm default location
    -d- choose the connection to be used (right top conner)
    This process is way to long for getting a new sheet to put write an SQL.
    Can you suggest a better way to get a workspace with current connection assigned in no time (like in MS Word)?
    Please ;)
    Yury

    There is no need to create new .sql file.
    I don't know why you need new SQL Worksheet when you can simply do the space by pressing Enter, but you can open a new one from Tools -> SQL Worksheet. There is also a toolbar button for this.

Maybe you are looking for

  • What's with isync?

    My idisk keeps opening on my desktop and it always says the last sync failed. What's that all about? I tried doing the reset and nothing good happened. Do I need to trash some perf file? I also repaired the hard drive with Drive Genius, utility disc.

  • How do you know or find out what the URL is on a calender published on .mac

    I want to publish or subscribe several different calenders....how do you know or where do you find the url when you go to subscibe? thanks ron

  • Using own domain name on Business Catalyst / Muse

    I have a 'complete plan' subscription to CC and I believe 5 free sites with Business Catalyst. From checking this forum and FAQ it appears I should be able to link a domain name I currently own to a BC site so my URL drops the businesscatalyst.com el

  • Printing to odd page size changes size of artwork

    I am working on a MacBook Pro running Leopard 10.5.5. I've got an Illustrator document that is about 47x33in. When I print it to PDF, the PDF page size is 47x33in, but the artwork has shrunk considerably in the center of the page. I have Acrobat 8 Pr

  • Installation issues for 10.1 on WinXPsp2

         I have been trying to troubleshoot this myself to the best of my ability and I am just about at my wits end.  I have the uninstaller downloaded as well as the two different versions of installers(IE and Firefox).  I have repeatedly ran the unins