• I had the same problem. What worked for me was to change a certain registry key.

    For A solution see:

    http://stackoverflow.com/questions/1726577/sql-management-studio-wont-open-scripts-on-double-click

    However, instead of replacing /dde by "%1" I just added (a space and) "%1" at the end.

    Leo