Home Forums SQL Server 2008 SQL Server 2008 Administration Attach DBs from a restored file on a disk RE: Attach DBs from a restored file on a disk
Andrew G
SSChampion
Points: 12809
More actions
July 30, 2014 at 6:35 pm
#1733886
Try this, open powershell,
cd databasefilelocation
$Acl = Get-Acl "workingdatafile.mdf"
Set-Acl "nonworkingdatafile.mdf" $Acl