title: How can I fix the T-SQL editor in VS 2012 after installing SQL Server 2012 SP1?
body: <p>I can suddenly no longer open .sql files in VS 2012 by simply double clicking in the Solution Explorer. I get the error message:</p>
  
  <blockquote>
    <p>Unable to open Transact-SQL file in custom editor</p>
  </blockquote>
  
  <p>I strongly suspect this is after installing SP1 for SQL Server 2012 Express yesterday, as part of Windows Updates. The error dialogue gives me a link to <em>Get the latest version of SQL Server Data Tools</em>, but that link only yields a Page not found on MSDN.</p>