Hi all,
When I try to share some Account entities with teams, I am receiving an SQL server timeout error after the bat fills about halfway.

The timeout normally occurs after around 30 seconds. The log file shows the following:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7858D628Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7858D628</Message>
<Timestamp>2015-01-29T13:20:35.7745462Z</Timestamp>
<InnerFault>
<ErrorCode>-2147204783</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>SQL timeout expired.</Message>
<Timestamp>2015-01-29T13:20:35.7745462Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
This appears only to happen for some Accounts and not others when trying to share with the same team. The Accounts, when shared, also share contacts through cascading relationships. I have tried restarting the sql server and also the sql services. The CRM server event viewer shows errors and warnings:
Query execution time of 30.2 seconds exceeded the threshold of 10 seconds. Thread: 24; Database: orgname_MSCRM; Server:servername; Query: exec p_CascadeGrantAccess 'c1e6190b-d17e-e411-b9d0-005056b55392', 9, 1, '24a3fc19-ef17-e411-ae18-005056b55392', 1, 134217729.
Any advice appreciated - thanks