I found this answer that worked with my SQL 2000 machines:
How to mount a database with an uncleaned MDF file.
Step 1: Create a new database with the same name and using the same files as the old ones on the new server.
Step 2: Stop the SQL server and transfer the mdf files (and any ndf files) on top of the new ones you just created. Delete all log files.
Step 3: Run SQL and run this to put the database in emergency mode.
sp_configure 'allow updates', 1 go reconfigure with override GO update sysdatabases set status = 32768 where name = 'TestDB' go sp_configure 'allow updates', 0 go reconfigure with override GO
Step 4: Restart the SQL server and make sure that the database is working successfully in emergency mode.
Step 5: Run this undocumented dbcc option to rebuild the log file (in the right place)
DBCC REBUILD_LOG(TestDB,'D:\SQL_Log\TestDB_Log.LDF')
Step 6: You may need to reset the status. Even if you do not, it will not harm you.
exec sp_resetstatus TestDB
Step 7: Stop and run SQL to see the recently restored database.
Jonathan
source share