Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Microsoft SQL Server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-01-12 : 08:46:35
Bipan writes "I found in enterprise manager that my database named "prod" is not there.But its prod_data.mdf and prod_data.ldf files are existing and there last modification date is 6 jan 2006. I have also deleted its full backup on 5th Jan 2006.
Can I get my database again from .mdf and .ldf files without Full database backup? I know that my data was in full recovery mode."

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2006-01-12 : 09:23:21
Yes you can. Use sp_attach.

For Example

EXEC sp_attach_db @dbname = N'pubs',
@filename1 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf',
@filename2 = N'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs_log.ldf'

For more information about this you can check books online.

Regards
Sachin


Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page
   

- Advertisement -