19Dec
Restore Database from MDF & LDF Files
Note: do not create new database, this command will create new database automatically, if you created database already then suggestion is to delete the database else it will not work
EXEC sp_attach_db @dbname = ‘eshop’,
@filename1 = ‘C:\eshop.mdf’,
@filename2 = ‘C:\eshop_log.ldf’;
eshop: Replace with your new database name
C:\eshop.mdf: Replace with where your mdf files is located
C:\eshop.ldf: Replace with where your ldf files is located

