Click here to Skip to main content
16,018,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have one ldf and mdf file and i want to restore it into sql server. could you please tell me the procedure..

Thank you in advance
Posted
Updated 7-Aug-16 3:26am

These links explain how to attach a database.
How to Attach a Database in SQL Server 2005[^]
Attach a Database[^]
 
Share this answer
 
Copy and paste the ldf & mdf file in [C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\](it's my may be you have little different path.)

Data folder after that start your query analyzer click on Object Explorer and right click on database you will get attach option click on attach after that
you will get a window as attach database and click on add button select you file from Data Folder. click on ok and click on ok button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900