Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 30th, 2007, 09:46 AM
Friend of Wrox
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default attach data base

hi expert
i created a database with test Name (test.MDF)
but forchenatly i lost the test_Log.LDF
then when i wanna to attach my database to enter prise manager i recive th fllowing error
help me thans
 the error is :

Could not open new database 'test'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'F:\mehdi\test_Log.LDF' may be incorrect.
Old May 30th, 2007, 11:07 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

Try this...

1) copy the test.MDF file to somewhere.
2) Create a new database with name "test" under the same path 'F:\mehdi'
3) Now stop SQL server service and Copy the original test.MDF file from the other location to overwrite the one under 'F:\mehdi', and dont disturb "test_Log.LDF".
4) Start Sql Server service You may get through...


- Vijay G
Strive for Perfection

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Base Error anees ASP.NET 1.0 and 1.1 Professional 6 May 27th, 2008 09:02 AM
Data base connectivity watashi C# 2005 8 July 18th, 2007 08:05 PM
how to protect data base Rajesh Pachouri Pro VB 6 1 September 23rd, 2006 03:33 AM
Transfering data from csv file to data base g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 2 May 16th, 2006 11:58 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.