title: Restoring database from .mdf and .ldf files of SQL Server 2008
body: <p>For some reason I have to uninstall SQL Server 2008 R2 but before that I copied two files (<code>.mdf</code> and <code>.ldf</code>) of my database from</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Microsoft SQL Server\MSSQL10_50.MSSQL2008\MSSQL\DATA</p>
  </blockquote>
  
  <p>Now, the question is, is it possible for me to recover the database from these files in my new installed SQL Server 2008 R2.</p>
  
  <p>If yes: then how can I do this?</p>