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

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Accessing database from debug folder shows error

Author  Topic 

meet_binay
Starting Member

10 Posts

Posted - 2013-06-16 : 11:09:20

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
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-06-16 : 12:49:03
Dup of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=186122
Go to Top of Page
   

- Advertisement -