Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to restore database from data files 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi there,

I am new to sql server. I have a database that i have to restore but I don't have the restore file, the only files i have are the mdf and ldf files when the database was created.

Which option should i choose to restore this database?

thanks,
Pi
 
Copy the mdf and ldf files to the required location on your SQL Server and then use the stored procedure sp_attach_db.

BOL will give you more details on this procedure which should achieve what you require.

Rick.
 
What version do u use ?
If u use SQL Server 2000, you can easily do this kinda problem....
Coz, SQL Server 2000 has added new feature for easy to use, named = Attach Database.

To find this new feature, kindly do a right-click on your mouse at Database and you can find a dropdown menu named = Attach Database...

Dialog box will show up, and u can follow the instructions. U can browse to the location of your MDF, nd tadaaaa.... it's done....

:p (Just follow the instructions at the dialog box)

Wille
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top