Hello All,
I 'm trying to attach a database to my sql server 2005 using the following syntax:
DBCC TRACEON(1807, -1)
GO
EXEC sp_attach_single_file_db 'MyNetworkDB', '\\leaf7\dbs\MyNetworkDB.mdf'
GO
Also, the folder dbs and the mdf file MyNetworkDB.mdf has full permission for Everyone.And when executing the above statement, i get the following error:
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Msg 5133, Level 16, State 1, Line 1
Directory lookup for the file "\\leaf7\dbs\MyNetworkDB.mdf" failed with the operating system error 5(Access is denied.).