Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Cannot access path when attaching database when data files on SMB share

$
0
0
I have a Windows Server 2012 R2 2 node cluster with SQL Server 2014 FCI installed. Data files are on a separate Windows Server 2012 R2 file server. Data files share has been permissioned to the SQL Server service and SQL Server Agent service accounts as Full Control. NTFS Permissions are Full Control.When I try to attach a database[code="sql"]CREATE DATABASE AdventureWorksDW2012 ON (FILENAME = '\\apricot\mssql_VIOLET\MSSQL12.MSSQLSERVER\MSSQL\DATA\AdventureWorksDW2012_Data.mdf')FOR ATTACH[/code]I get this error:Msg 5120, Level 16, State 101, Line 4Unable to open the physical file "\\apricot\mssql_VIOLET\MSSQL12.MSSQLSERVER\MSSQL\DATA\AdventureWorksDW2012_Data.mdf". Operating system error 5: "5(Access is denied.)".If I log into the file server (called APRICOT) and look at the NTFS permissions they all look good. I have also reapplied the NTFS permissions from the root folder down.[b]EDIT[/b]If I log on to one of the nodes in the cluster as the SQL Server service account and navigate to \\apricot\mssql_VIOLET\MSSQL12.MSSQLSERVER\MSSQL\DATA and copy and paste the data file, it works fine.[b]EDIT2:[/b]If I log on to the file server and Enable Inheritance at the root level, then [b]Replace all child objects with inheritable permission entries from this object[/b], I get this error:[img]http://i.imgur.com/IfdsNqd.png[/img]User Account Control settings on all nodes and the file server are set to [b]Never notify[/b]

Viewing all articles
Browse latest Browse all 6525

Trending Articles