SQL Management Studio won't open scripts on double-click

前端 未结 8 1092
梦毁少年i
梦毁少年i 2020-12-09 16:44

I\'m used to double-clicking *.sql script files to open them in SQL Server Management Studio. I recently upgraded to Win7, and now when I double-click a script file, SSMS op

相关标签:
8条回答
  • 2020-12-09 17:31

    For SQL Server 2012 the reg key is different:

    HKEY_CLASSES_ROOT\ssms.sql.11.0
    
    0 讨论(0)
  • 2020-12-09 17:34

    Run regedit and go to the following key:

    Check to make sure you have tthe correct version. In my case, it is 12.0

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssms.sql.12.0\Shell\Open\Command

    Edit the default value to add "%1" to the end.

    The value should now look like the following: (modify path name to to match the ssms.exe program on your pc)

    "c:\Program Files\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\ssms.exe" /dde "%1"

    0 讨论(0)
提交回复
热议问题