Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Accessing database from debug folder shows error
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

10 Posts

Posted - 06/16/2013 :  11:09:20  Show Profile  Reply with Quote

Hi, I am trying to access the .mdf data base file from the debug folder.
connection string with "|DataDirectory|" is able to find the data base file but error shows as follows:-

"could not open new data base <database name>.
create database is aborted.
can not attach file "<complete path of data base in debug folder>"
as database <database name>

physical file name <database log file> may be in correct

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 06/16/2013 :  12:49:03  Show Profile  Reply with Quote
Dup of
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000