How to Attach a Existing Database to SQL Server?
Add an Existing Database to SQL Server
Go to Microsoft SQL Server Management Studio > Right Click on Database > Select Attach.
A new window will be open. Click on Add and browse location of MDF file which you want to add.
A explorer window will be open. Here select MDF file and click on OK.
- Now you will see database file details will be shown. Select database and click on OK.
- By exploring Database folder in Object Explorer window, you will see database has been attached.
Note: If you are not able to attach SQL database to SQL Server or it got corrupted somehow then to recover it use SysTools SQL Recovery which repairs corrupted database accurately and efficiently.