• This works if you associate .sql files with ssms in file explorer.

    Right-click a .sql file in a TFS solution and select Open with...

    Press Add...
    The Program is C:\Windows\explorer.exe
    Friendly name is Windows Explorer
    Press OK and set as default