A database might not attach if it wasn't properly detached. You can try
running sp_attach_single_file_db from Query Analyzer, specifying the path to
your database file. If this doesn't work, you best option is to restore
from backup.
If you have no backups, contact Microsoft PSS for assistance. They may be
able to help you salvage data but data integrity will be questionable
without the log.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Proli" <in**@proli.it> wrote in message
news:AI********************@news4.tin.it...
Hi,
I have lost my win 2k server where I had my Sql 2000 data.
Now I need to attach to sql server my database, but I have lost the log
file.
If I use the enterprise manager I get an error, if I use a stored
procedure I get an error.
How can I do to attach my .mdf file to Sql Server?
Thanks in advance
Marco Dell'Oca