Aaron,
Check the Path and DB name for correct spelling.
Jorge A. Herrera
MSSQL DBA
Chevy Chase Bank
6200 Chevy Chase Drive
Laurel, MD. 20707
[Email Address Removed] Message-----
From: Aaron [mailto:[Email Address Removed] Monday, March 22, 2004 1:04 PM
To: LazyDBA.com Discussion
Subject: Attach Database
From BOL I have used this example to attempt to re-attach a .mdf
EXEC sp_attach_single_file_db @dbname = 'pubs',
@physname = 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf'
But, I'm getting this error all the time:
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'db1'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'D:\sqldata\db1_log.ldf' may
be incorrect.
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
Get today's cartoon: http://www.LazyDBA.com
To unsubscribe, e-mail: mssqldba-[Email Address Removed] additional commands, e-mail: mssqldba-[Email Address Removed] is to be used for Chevy Chase Bank business purposes only.
Confidential information should not be sent via email as there is no
expectation of privacy or integrity of the message through the Internet.
**********************************************************************
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error
please notify the system manager.
This footnote confirms that this email message has been scanned
for the presence of computer viruses.
Chevy Chase Bank
**********************************************************************
MS Sql Server LazyDBA home page