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

前端 未结 8 1099
梦毁少年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:09

    In my case the registry key that needed fixing was HKEY_CLASSES_ROOT\.sql

    The (Default) had been changed to sql_auto_file... and needed to be ssms.sql.12.0 (for SSMS 2014)... presumably ssms.sql.11.0 for SSMS 2012.

    All the other stuff down in the HKEY_CLASSES_ROOT\ssms.sql.12.0 path, that most other solutions tend to refer to, was fine as is.

    screenshot of proper reg entry

提交回复
热议问题