Unix Technical Forum

Restoring database

This is a discussion on Restoring database within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello, due to some testing my SQL Server crashed. I have to reinstall it and ... For now I ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:31 PM
Snick
 
Posts: n/a
Default Restoring database

Hello,
due to some testing my SQL Server crashed. I have to reinstall it and ...
For now I only have .mdf file and nothing else. My question is: is there any
possibility to restore this .mdf file for SQL 2000? I have some useful data
in this file and there will be nice to use it.

Best Regards
MarciN


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:31 PM
Simon Hayes
 
Posts: n/a
Default Re: Restoring database


"Snick" <butcher@gold.pl> wrote in message
news:btueb9$bho$1@news2.ipartners.pl...
> Hello,
> due to some testing my SQL Server crashed. I have to reinstall it and ...
> For now I only have .mdf file and nothing else. My question is: is there

any
> possibility to restore this .mdf file for SQL 2000? I have some useful

data
> in this file and there will be nice to use it.
>
> Best Regards
> MarciN
>
>


You can try using sp_attach_single_file_db, but this may not work (it is
supported only for databases detached with sp_detach_db). If it doesn't
work, then you should consider contacting MS PSS, if the data is valuable
enough.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 08:31 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Restoring database

Snick (butcher@gold.pl) writes:
> due to some testing my SQL Server crashed. I have to reinstall it and
> ... For now I only have .mdf file and nothing else. My question is: is
> there any possibility to restore this .mdf file for SQL 2000? I have
> some useful data in this file and there will be nice to use it.


Beyond the sp_attach_single_file_db, there is a way to do this. However,
this is a dangerous path to go, and I am only sending the instructions
by mail. And if that data is very dear to you, you should definitely
cough up the money for a support case. (And learn the lesson and start
to take backups!)

It is dangerous, because you build a new clean log file, and you get
the database exactly in the state of the crash. If the database was
idle, it may be perfectly fine. If there was activity, it may be
grossly corrupt. DBCC may or may not reveal anything, but your own
data could be consistent.

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com