﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>CRM MVP Connection</title>
    <description>Microsoft CRM MVP Matt Wittemann shares his insights into the inner workings of Microsoft Dynamics CRM with valuable articles about development, customization, power-user tips, and administration.</description>
    <link>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/BlogId/15/Default.aspx</link>
    <language>en-US</language>
    <webMaster>brent.eicher@customer-connect.com</webMaster>
    <pubDate>Tue, 06 Jan 2009 15:20:15 GMT</pubDate>
    <lastBuildDate>Tue, 06 Jan 2009 15:20:15 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.4.0.39853</generator>
    <item>
      <title>How Many Duplicate Records Do You Have?</title>
      <description>&lt;p&gt;Microsoft Dynamics CRM 4.0 has built-in duplicate detection which is great, but in 3.0, which many businesses are still using, the only options for duplicate detection were some third-party applications or a a custom-developed one like the minimally functional example in the 3.0 SDK.&lt;/p&gt;
&lt;p&gt;[BEST PRACTICES NOTE: Duplicate detection should be only one of the tools in you data quality arsenal. The best approach is  to have some solid practices that govern data entry, and to train users well on things like searching for a record before entering new data.]&lt;/p&gt;
&lt;p&gt;Because of the shortcomings of duplicate detection in version 3.0, a lot of these systems have ended up with some data quality issues. If you're running CRM 3.0 and you'd like a quick way to check your duplicates, here's a simple SQL query you can run to find them.&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Open SQL Server Management Studio and select your CRM database (it will be called something like 'YourCompanyName_MSCRM')&lt;/li&gt;
    &lt;li&gt;Right-click the CRM database name and select 'New Query.'&lt;/li&gt;
    &lt;li&gt;In the query window, type the following query:&lt;br /&gt;
    &lt;br /&gt;
    &lt;font face="Courier New" color="#666699"&gt;  SELECT name, COUNT(name) AS NumOccurrences&lt;br /&gt;
      FROM FilteredAccount&lt;br /&gt;
      GROUP BY name&lt;br /&gt;
      HAVING (COUNT(name) &gt; 1)&lt;br /&gt;
      ORDER BY NumOccurrences DESC&lt;/font&gt;   &lt;/li&gt;
    &lt;li&gt;&lt;font color="#000000" size="2"&gt;Then click the 'Execute' button to run the query. You'll get back a list that looks like this:&lt;/font&gt;
    &lt;p&gt;&lt;font color="#000000" size="2"&gt;
    &lt;table height="98" cellspacing="1" cellpadding="1" width="333" border="1"&gt;
        &lt;tbody&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;name&lt;/font&gt;&lt;/td&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;NumOccurrences&lt;/font&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;Bakersfield Furniture&lt;/font&gt;&lt;/td&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;3&lt;/font&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;Dodge City Wholesale&lt;/font&gt;&lt;/td&gt;
                &lt;td&gt;&lt;font face="Courier New" size="2"&gt;2&lt;/font&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;/font&gt;&lt;/p&gt;
    &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you are using an account number or other identifier that should be unique, you can replace 'name' in the query with the name of that field to be more precise.  Then you can go about locating the accounts in CRM and deciding what to do with them. Remember that CRM 3 and 4 have a "merge" function that lets you select two records at a time in a list view and merge them together by clicking the merge icon at the top of the list.&lt;/p&gt;</description>
      <link>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/EntryID/45/Default.aspx</link>
      <comments>http://prod1.si-sv1740.com/crmblog/Home/tabid/866/EntryID/45/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://prod1.si-sv1740.com/Default.aspx?tabid=866&amp;EntryID=45</guid>
      <pubDate>Wed, 11 Jun 2008 18:14:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://prod1.si-sv1740.com/DesktopModules/Blog/Trackback.aspx?id=45</trackback:ping>
    </item>
  </channel>
</rss>