SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

meet_binay
Starting Member

India
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

3565 Posts

Posted - 06/16/2013 :  12:49:03  Show Profile  Reply with Quote
Dup of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=186122
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000