problem attaching to mdf when ldf missing SQL Server 2000

Have a customer with a bad ldf. Tried to run the following to recreate the ldf but it displays the following error. Any ideas?

USE [master]
GO
-- Method 1: I use this method
EXEC sp_attach_single_file_db @dbname='Production',
@physname=N'C:\Program Files\program\Databases\Production.mdf'
GO

Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'Production'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'C:\Program Files\program\Databases\Production.ldf' may be incorrect.



glenn_rAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anthony PerkinsCommented:
Unfortunately, the log file is an intrinsic part of the the database, if you do not have a backup then your best bet may be this:
Recovering from a deleted log file on SQL Server
http://www.spaceprogram.com/knowledge/sqlserver_recover_from_deleted_log.html

But I will be impressed if you can solve this without a backup and without major data loss.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
glenn_rAuthor Commented:
The instructions to add the faux DB and export its contents worked like a charm. Recovered all the data without the LDF. Thanks
0
glenn_rAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for glenn_r's comment http:/Q_27513683.html#37355060

for the following reason:

great
0
Anthony PerkinsCommented:
>>The instructions to add the faux DB and export its contents worked like a charm.<<
The author either needs to indicate what instructions they are referring to or award points appropriately.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.