SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Refuses to backup or restore
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MPG107
Starting Member

United Kingdom
1 Posts

Posted - 10/30/2012 :  16:48:14  Show Profile  Reply with Quote
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

USA
15683 Posts

Posted - 10/30/2012 :  16:58:06  Show Profile  Visit robvolk's Homepage  Reply with Quote
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 Posts

Posted - 11/01/2012 :  16:08:26  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000