Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Refuses to backup or restore

Author  Topic 

MPG107
Starting Member

1 Post

Posted - 2012-10-30 : 16:48:14
I am using Accounts 2009 which uses SQL 2005 Express. For some unknown reason 2 computers refuses to backup or restore the database. 2 other computers work well. I am using XP on all PCs. It comes up with the following for restore - Control List not in canonical form and for backup - EventType : officeaccounting2 P1 : 4.0.3610.0
P2 : invalidoperationexception P3 : workerthreadstart
P4 : grantaccesstosqlserver P5 : 5b72ec82 P6 : 809 P7 : 1 . The Accounts 2009 is no longer supported by Microsoft, can anyone help.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-10-30 : 16:58:06
You should try the Microsoft forums: http://answers.microsoft.com/ even if it's not officially supported. Those error messages are not related to SQL Server so it's unlikely we can help with them. It sounds like there may be file permission issues on the two machines that don't work.
Go to Top of Page

LauraP
Starting Member

1 Post

Posted - 2012-11-01 : 16:08:26
I have had same problem with not Canonical ACL. At first you have to find the drectories with corrupted ACL.
For do that you can run c# code below

static void Main(string[] args)

{
string globalDir="";
string sourceDirectory = @"C:\";
try
{
var txtDir = Directory.EnumerateDirectories(sourceDirectory,"*.*", SearchOption.AllDirectories);

foreach (string currentDir in txtDir)
{
try
{
//Debug.WriteLine(currentDir);
globalDir = currentDir;
DirectoryInfo directory = new DirectoryInfo(currentDir);
var directorySecurity = directory.GetAccessControl(AccessControlSections.Access);
if (directorySecurity == null)
{
throw new ArgumentNullException("objectSecurity");
}
if (!directorySecurity.AreAccessRulesCanonical)
{
Debug.WriteLine(currentDir + "************* ACL not canonical *******************");
}
}
catch
{
}
}
}
catch (Exception e)
{
Debug.WriteLine(globalDir);
Debug.WriteLine (e.Message);
}

}
}
After for each directory found you have simply to go to the folder and view directory security tab (right click on the folder, choose property, and click security tab). An error message will appear asking you if you want repair ACL not in canonical form. Answer ok and the problem is solved.
Go to Top of Page
   

- Advertisement -