Attaching SQL database on UNC path

Sunset
Member Posts: 201
How do I attach a database on an unc path on SQL 2005?
Due to discplace shortage I'm trying to attach a database using an unc path. Through some reading I have seen that I need to set traceflag 1807, but it's still not working
I can point to the mdf file when sql askes me what database to attach. This works. But then I have to point where individual files are currently located and now SQL gives me the message "Not found" If I try to attach the database anyway, it gives me
TITLE: Microsoft SQL Server Management Studio
Attach database failed for Server 'sqlserver'. (Microsoft.SqlServer.Smo)
Directory lookup for the file "UNC-PATH\NAVISION4_Data.mdf" failed with the operating system error 5(Access is denied.). (Microsoft SQL Server, Error: 5133)
For help, click: http://go.microsoft.com/fwlink?ProdName ... nkId=20476
Unfortunately the link doesn't provide any help.
Anybody here that has had any success in attaching this way?
Due to discplace shortage I'm trying to attach a database using an unc path. Through some reading I have seen that I need to set traceflag 1807, but it's still not working

I can point to the mdf file when sql askes me what database to attach. This works. But then I have to point where individual files are currently located and now SQL gives me the message "Not found" If I try to attach the database anyway, it gives me
TITLE: Microsoft SQL Server Management Studio
Attach database failed for Server 'sqlserver'. (Microsoft.SqlServer.Smo)
Directory lookup for the file "UNC-PATH\NAVISION4_Data.mdf" failed with the operating system error 5(Access is denied.). (Microsoft SQL Server, Error: 5133)
For help, click: http://go.microsoft.com/fwlink?ProdName ... nkId=20476
Unfortunately the link doesn't provide any help.
Anybody here that has had any success in attaching this way?
Don't just take my word for it, test it yourself
0
Comments
-
I haven't been able to attach data file through the network. It seems that SQL Server doesn't allow that. A better place to search for an answer might be the public SQL Server newsgroups (usenet on news.microsoft.com, or you can access the communities through the MS website)0
-
By default, you cannot create a database file in UNC path Server 2000.
Turn on trace flag 1807 to change this.
DBCC TRACEON(1807)0 -
I tried setting flag 1807, both local and global (1807,-1)
The result was getting from error 5110 (I think) to error 5133Don't just take my word for it, test it yourself0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions