Hari is correct! But SP_attach_db won't work if the db was suspect (had
corruption).
Another option would be creating a db with the same exact name, in the same
exact location (identical path/filename) as the old one, and then swap out
the files.
Regardless of which method you employ, for the love of all things holy, you
need to run Dbcc checkdb on that db once you have it up and running.
Be prepared for some amount of dataloss if you have to run dbcc checkdb with
the repair allow dataloss option.
Hope that helps.
Donna
[quoted text, click to view] "Hari Prasad" wrote:
> Hi,
>
> You could try using the command SP_ATTACH_DB from Query analyzer to attach
> the database to SQL Server. See the command
> usage in SQL Server Books online.
>
> Thanks
> Hari
> SQL Server MVP
>
>
> "Julio" <Julio@discussions.microsoft.com> wrote in message
> news:66ED0BC1-1B97-4EDB-B605-653F96B8FA6D@microsoft.com...
> > Hi, I had a problem with one database. The hard disk of the server is
> > damaged
> > but I could get the files mdf and ldf for the database. I don't have a
> > backup
> > file, but I wonder if I can recover the database information with these
> > two
> > files.
> >
> > Thanks
>
>