<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-31769461</id><updated>2011-11-27T17:04:57.775-08:00</updated><category term='SCOM'/><category term='Deletion Service'/><category term='CRM'/><category term='Monitoring'/><category term='Purging'/><category term='Database'/><category term='RollUps'/><title type='text'>CrmBuzz work in progress!</title><subtitle type='html'>MS CRM Dynamics, Workflows, customizations, callouts, email templates and more.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-31769461.post-5188999639338821884</id><published>2011-07-28T13:34:00.001-07:00</published><updated>2011-07-28T13:35:15.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RollUps'/><category scheme='http://www.blogger.com/atom/ns#' term='CRM'/><title type='text'>Update Rollup 3 for Microsoft Dynamics CRM 2011 is available</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Update Rollup 3 for Microsoft Dynamics CRM 2011 is available.&amp;nbsp; you can find the download&amp;nbsp; on the following location:&lt;/p&gt; &lt;p&gt;&lt;a title="http://www.microsoft.com/download/en/details.aspx?id=26912" href="http://www.microsoft.com/download/en/details.aspx?id=26912"&gt;http://www.microsoft.com/download/en/details.aspx?id=26912&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Rollup Summary information&lt;/p&gt; &lt;p&gt;&lt;a title="http://support.microsoft.com/kb/2547347" href="http://support.microsoft.com/kb/2547347"&gt;http://support.microsoft.com/kb/2547347&lt;/a&gt;&lt;/p&gt; &lt;p&gt;The build number of the update packages for the following components is 5.0.9688.1244.&lt;/p&gt; &lt;p&gt;The file names for the 32-bit versions of the update rollup packages are as follows:  &lt;ul&gt; &lt;li&gt;CRM2011-Client-KB2547347-&lt;i&gt;L&lt;/i&gt;&lt;i&gt;angID&lt;/i&gt;-i386.exe  &lt;li&gt;CRM2011-Router-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-i386.exe  &lt;li&gt;CRM2011-Bids-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-i386.exe  &lt;li&gt;CRM2011-Mui-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-i386.exe&lt;/li&gt;&lt;/ul&gt;The file names for the 64-bit versions of the update packages are as follows:  &lt;ul&gt; &lt;li&gt;CRM2011-Server-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-amd64.exe  &lt;li&gt;CRM2011-Client-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-amd64.exe  &lt;li&gt;CRM2011-Mui-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-amd64.exe  &lt;li&gt;CRM2011-Router-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-amd64.exe  &lt;li&gt;CRM2011-Srs-KB2547347-&lt;i&gt;LangID&lt;/i&gt;-amd64.3exe&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&amp;nbsp; &lt;p style="line-height: normal; margin: 0in 0in 0pt" class="MsoNormal"&gt;&lt;b&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size: 11pt" color="#ffffff"&gt;Highlights of Update Rollup 3&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff"&gt;&lt;span style="font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font face="Symbol"&gt;&lt;font style="font-size: 11pt"&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style="line-height: normal; font-family: "&gt;&lt;font face="Times New Roman"&gt;&lt;font style="font-size: 7pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size: 11pt"&gt;69 total fixes&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff"&gt;&lt;span style="font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font face="Symbol"&gt;&lt;font style="font-size: 11pt"&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style="line-height: normal; font-family: "&gt;&lt;font face="Times New Roman"&gt;&lt;font style="font-size: 7pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size: 11pt"&gt;24 customer-escalated issues (see &lt;/font&gt;&lt;/font&gt;&lt;font style="font-size: 11pt"&gt;&lt;a href="http://support.microsoft.com/kb/2547347"&gt;&lt;font face="Calibri"&gt;&lt;u&gt;KB&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size: 11pt"&gt; for details)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff" face="Calibri"&gt;Abe.&lt;/font&gt;&lt;/p&gt; &lt;p style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class="MsoListParagraph"&gt;&lt;font color="#ffffff" face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-5188999639338821884?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/5188999639338821884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=5188999639338821884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/5188999639338821884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/5188999639338821884'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2011/07/update-rollup-3-for-microsoft-dynamics.html' title='Update Rollup 3 for Microsoft Dynamics CRM 2011 is available'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31769461.post-3144921634543222631</id><published>2011-07-19T10:21:00.001-07:00</published><updated>2011-07-19T10:21:11.808-07:00</updated><title type='text'>Performance Toolkit for Microsoft Dynamics CRM 2011</title><content type='html'>&lt;p&gt;My customer was reminding me about server performance, looking for answers I got internally (Microsoft) the Performance Toolkit for Microsoft Dynamics CRM 2011, the following is the external (partner) link for the Performance Toolkit&lt;/p&gt; &lt;p&gt;&lt;a title="http://dynamics.pinpoint.microsoft.com/en-us/applications/performance-toolkit-for-microsoft-dynamics-crm-2011-12884915630" href="http://dynamics.pinpoint.microsoft.com/en-us/applications/performance-toolkit-for-microsoft-dynamics-crm-2011-12884915630"&gt;http://dynamics.pinpoint.microsoft.com/en-us/applications/performance-toolkit-for-microsoft-dynamics-crm-2011-12884915630&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Press the “Try It” button on the left column,&amp;nbsp; to login and download.&lt;/p&gt; &lt;p&gt;Application Description&lt;/p&gt; &lt;p&gt;&lt;em&gt;“The Performance Toolkit is designed to formalize performance testing for Microsoft Dynamics CRM 2011. This Toolkit is highly customizable and can be used by Microsoft Dynamics CRM partners and customers to collect performance data to support decisions related to their CRM 2011 on-premise deployments”&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Abe.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-3144921634543222631?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/3144921634543222631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=3144921634543222631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3144921634543222631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3144921634543222631'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2011/07/performance-toolkit-for-microsoft.html' title='Performance Toolkit for Microsoft Dynamics CRM 2011'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31769461.post-3122836014498272938</id><published>2011-07-19T10:09:00.001-07:00</published><updated>2011-07-19T10:09:31.802-07:00</updated><title type='text'>Building a CRM 2011 Virtual Machine–Video Walkthrough</title><content type='html'>&lt;p&gt;Working on a customer site, I was in the need to create a Virtual Machine to test a CRM 2011 deployment, I was looking on my notes and found the following link on how to create a CRM 2011 Virtual Machine step by step, I was able to get my VM up and ready faster than me looking to my old notes.&lt;/p&gt; &lt;p&gt;Hope you enjoy the following post from Girish Raja and video form David Yack.&lt;/p&gt; &lt;p&gt;&lt;a title="http://blogs.msdn.com/b/girishr/archive/2011/01/26/building-a-crm-2011-virtual-machine-video-walkthrough.aspx" href="http://blogs.msdn.com/b/girishr/archive/2011/01/26/building-a-crm-2011-virtual-machine-video-walkthrough.aspx"&gt;http://blogs.msdn.com/b/girishr/archive/2011/01/26/building-a-crm-2011-virtual-machine-video-walkthrough.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Abe.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-3122836014498272938?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/3122836014498272938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=3122836014498272938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3122836014498272938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3122836014498272938'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2011/07/building-crm-2011-virtual-machinevideo.html' title='Building a CRM 2011 Virtual Machine–Video Walkthrough'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31769461.post-2805067855932336220</id><published>2011-07-14T06:27:00.001-07:00</published><updated>2011-07-14T06:31:10.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='SCOM'/><category scheme='http://www.blogger.com/atom/ns#' term='CRM'/><title type='text'>SCOM Management Pack for Microsoft Dynamics CRM 2011 is now Available…</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;p&gt;The System Center Monitoring Pack for Microsoft Dynamics CRM 2011 enables you to administer the Microsoft Dynamics CRM 2011 application in Microsoft System Center Operations Manager (SCOM) 2007 SP1 and System Center Operations Manager 2007 R2  &lt;p&gt;By managing these Microsoft Dynamics CRM components in Operations Manager, the administrator can respond quickly to critical events and key performance indicators, and take action to prevent service outages, reduce the resolution time for alert conditions, and increase the overall availability and performance of the Microsoft Dynamics CRM system.  &lt;p&gt;Monitoring Pack and Documentation is available on the following location  &lt;p&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?id=26795"&gt;http://www.microsoft.com/download/en/details.aspx?id=26795&lt;/a&gt;  &lt;p&gt;&amp;nbsp; &lt;b&gt;To import the Monitoring Pack: &lt;/b&gt; &lt;ol&gt; &lt;li&gt;On a System Center Operations Manager server, open the Administration console.  &lt;li&gt;Right click on the Management Packs node, and then click Import Management Packs.  &lt;li&gt;Follow the instructions to import the Management Pack. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Abe.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-2805067855932336220?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/2805067855932336220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=2805067855932336220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/2805067855932336220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/2805067855932336220'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2011/07/scom-management-pack-for-microsoft.html' title='SCOM Management Pack for Microsoft Dynamics CRM 2011 is now Available…'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31769461.post-3634792705921166587</id><published>2011-07-12T12:56:00.001-07:00</published><updated>2011-07-14T06:32:33.693-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CRM'/><title type='text'>Returning My Blog to Bloggers and retake blogging..</title><content type='html'>&lt;p&gt;The time has come to return and continue blogging about Microsoft Dynamics CRM 4.0 and now 2011.&lt;/p&gt; &lt;p&gt;I had been busy working on many projects, some of these are really interesting others are not so much but learning some good tricks and code among other things. &lt;/p&gt; &lt;p&gt;New information and categories will be added to my blog for MS CRM 2011 and PowerShell scripting is now the new way to get thinks done, I will be posting small scripts I been using to deploy CRM 4.0 and 2011 on Windows Server 2008 R2 (64bit) servers.&lt;/p&gt; &lt;p&gt;Keep connected I will be providing more information soon.&lt;/p&gt; &lt;p&gt;Abe.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-3634792705921166587?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/3634792705921166587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=3634792705921166587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3634792705921166587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/3634792705921166587'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2011/07/returning-my-blog-to-bloggers-and.html' title='Returning My Blog to Bloggers and retake blogging..'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31769461.post-2594921265732521266</id><published>2007-02-09T14:34:00.000-08:00</published><updated>2007-02-09T15:25:20.198-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Purging'/><category scheme='http://www.blogger.com/atom/ns#' term='Database'/><category scheme='http://www.blogger.com/atom/ns#' term='Deletion Service'/><category scheme='http://www.blogger.com/atom/ns#' term='CRM'/><title type='text'>Purging rows on Princiapl Object Access</title><content type='html'>&lt;span style="color:#cc0000;"&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;Disclaimer&lt;/span&gt;:&lt;span style="color:#000000;"&gt;All postings are provided "AS IS" with no warranties, and confer no rights.]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Purging some tables on Crm is simple as calling the delete service and make sure that everything continues running properly, but when you have &lt;strong&gt;more than 10 million rows on one table (PrincipalObjectAccess) &lt;/strong&gt;&lt;em&gt;how do you will be able to take the delete process on stages?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;[&lt;span style="color:#cc0000;"&gt;MS&lt;/span&gt;&lt;span style="color:#cc0000;"&gt; Crm support response&lt;/span&gt;: There is an un-supported option that you could try if you want to get rid of all sharing that is currently setup in CRM. You could directly update the PrincipalObjectAccess table and set the AccessRightsMask and InheritedAccessRightsMask columns to 0. Then we have a deletion service that will go through and automatically clean up that table. This is not technically supported, but if you want to remove all sharing this could be an option that you could do.&lt;br /&gt;&lt;br /&gt;Ok that is awesome, but how to identify the rows that are not in use or ready to be deleted.&lt;br /&gt;&lt;br /&gt;This is one of the Sql scripts to get the total of rows ready to be deleted and terminated&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;declare @totalRows int&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;declare @ToDelete int&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;declare @ToDeleteMarked int&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;SELECT @totalRows = count( * )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;FROM PrincipalObjectAccess (nolock)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;SELECT @ToDelete= count( *) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;FROM PrincipalObjectAccess (nolock)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;where AccessRightsMask = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;and InheritedAccessRightsMask &gt; 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;SELECT @ToDeleteMarked= count( *) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;FROM PrincipalObjectAccess (nolock)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;where AccessRightsMask = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;and InheritedAccessRightsMask = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Select @totalRows as TotalRows, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;@ToDelete as ToDelete, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;(@totalRows - @ToDelete) as RemainingRows, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;@ToDeleteMarked as ToDeleteMarked&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;Using the previous script will give you the totals only the following script is the one that will update your columns and marked the rows for deletion..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[&lt;span style="color:#cc0000;"&gt;IMPORTANT:&lt;/span&gt; Make sure that you have SQL database backups before trying this and know that you may have to restore your databases if you run into issues. Also this can ONLY be done if you want to remove ALL sharing. There is not a way to leave some sharing intact. ]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;SELECT top 500000 * &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;into #TempPOAFROM &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;PrincipalObjectAccess (nolock)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;where AccessRightsMask = 0 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;and InheritedAccessRightsMask &gt; 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;update PrincipalObjectAccess &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;set InheritedAccessRightsMask = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;where rowguid in (Select rowguid from #tempPOA)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;drop table #TempPOA&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;After finishing marking all the rows for deletion, now you can run the delete service, stop the service (not required) then run the following dos command&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;color:#000000;"&gt;C:\Program Files\Microsoft CRM\Server\bin\CrmDeletionService.exe -runonce&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;[&lt;span style="color:#990000;"&gt;NOTE:&lt;/span&gt; -runonce = Clean up database right now.]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;we schedule the deletion service to run only once a day, on a business downtime, this process will keep your tables purged and on optimal conditions&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;regards, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;Abe Saldaña&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Trebuchet MS;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31769461-2594921265732521266?l=crmbuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crmbuzz.blogspot.com/feeds/2594921265732521266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31769461&amp;postID=2594921265732521266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/2594921265732521266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31769461/posts/default/2594921265732521266'/><link rel='alternate' type='text/html' href='http://crmbuzz.blogspot.com/2007/02/purging-rows-on-princiapl-object-access.html' title='Purging rows on Princiapl Object Access'/><author><name>Abraham Saldana</name><uri>http://www.blogger.com/profile/10885922867646249950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://www.codersoasis.com/Portals/0/Abraham_Smile.jpg'/></author><thr:total>0</thr:total></entry></feed>
