Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot restrict users from printing data in Microsoft CRM 3.0 or from exporting data from Microsoft CRM 3.0 to Microsoft Excel


View products that this article applies to.

Symptoms

You cannot restrict users in your organization from taking any one of the following actions:
  • Printing data in Microsoft Dynamics CRM 3.0
  • Exporting data from Microsoft CRM 3.0 to Microsoft Excel
Your organization may want to restrict users from printing personal information in Microsoft CRM 3.0 or from exporting personal information from Microsoft CRM 3.0 to Excel. Personal information may include items such as e-mail addresses and telephone numbers.

↑ Back to the top


Resolution

To resolve this problem, follow these steps:
  1. Install the hotfix that is described in this article. After you install the hotfix, users cannot print data in Microsoft CRM 3.0 or in Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers. Additionally, users cannot export data from Microsoft CRM 3.0 to Microsoft Excel or from Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers to Microsoft Excel. For more information, see the "Hotfix information" section.
  2. Enable the hotfix. After you enable the hotfix, users cannot use the Excel toolbar button in the Microsoft CRM grid views or in the Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers grid views to export data to Microsoft Excel. For more information, see the "How to enable the hotfix" section.
  3. Create an alternative database by using the AlternateDataSource registry key, and then enable the export of data from this database to Microsoft Excel. In this manner, you can make sure that the data that a user exports from Microsoft CRM 3.0 or Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers has personal or private information removed from it. For more information, see the "How to create an alternative database" and "How to enable the export of data from an alternative database to Excel" sections.

    Note After you take this action, the user receives an error message in Excel if one of the following conditions is true:
    • An invalid AlternateDataSource registry key value is set.
    • The user does not have read access to the alternative database.
    The message that the user receives is the following message:
    Connection failed: SQLState: '08004' SQL Server Error: 4060 Server rejected the connection; Access to selected database has been denied'.

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Installation information

Install this hotfix on computers that are running Microsoft CRM 3.0 Client, Microsoft CRM 3.0 Server, or Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers.

Prerequisites

There are no prerequisites to install this hotfix.

Removal information

You cannot remove this hotfix.

Restart requirement

If you are prompted, restart the computer after you install this hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Microsoft Dynamics CRM 3.0 client
File nameFile versionFile sizeDateTime
Appgrid.htcNot Applicable11,81520-Mar-200623:44
Microsoft.crm.application.components.application.dll3.0.5300.1085596,76020-Mar-200623:58
Microsoft.crm.application.pages.dll3.0.5300.1085736,02420-Mar-200623:58
Print_dlg.aspxNot Applicable8,81620-Mar-200623:44
Microsoft Dynamics CRM 3.0 server
File nameFile versionFile sizeDateTime
Appgrid.htcNot Applicable11,81520-Mar-200623:44
Microsoft.crm.application.components.application.dll3.0.5300.1085686,85620-Mar-200623:56
Microsoft.crm.application.pages.dll3.0.5300.1085965,38420-Mar-200623:56
Print_dlg.aspxNot Applicable8,81620-Mar-200623:44
Systemsettings.aspxNot Applicable33,17120-Mar-200623:44
Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers client
File nameFile versionFile sizeDateTime
Appgrid.htcNot Applicable11,81520-Mar-200623:44
Microsoft.crm.application.components.application.dll3.0.5300.1085596,76020-Mar-200623:58
Microsoft.crm.application.pages.dll3.0.5300.1085736,02420-Mar-200623:58
Print_dlg.aspxNot Applicable8,81620-Mar-200623:44
Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers server
File nameFile versionFile sizeDateTime
Appgrid.htcNot Applicable11,81520-Mar-200623:44
Microsoft.crm.application.components.application.dll3.0.5300.1085686,85620-Mar-200623:56
Microsoft.crm.application.pages.dll3.0.5300.1085965,38420-Mar-200623:56
Print_dlg.aspxNot Applicable8,81620-Mar-200623:44
Systemsettings.aspxNot Applicable33,17120-Mar-200623:44

How to enable the hotfix

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Note After you enable this hotfix, users will be unable to print data in Microsoft CRM 3.0 or in Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers. Additionally, users will be unable to export data from Microsoft CRM 3.0 or Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers to Excel. Only the Dynamic PivotTable function and the Dynamic Worksheet function will be available to users in Excel.
  1. Exit Microsoft CRM 3.0.
  2. On the Microsoft CRM server, click Start, click Run, type regedit, and then click OK.
  3. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM
  4. On the Edit menu, point to New, and then click DWORD Value.
  5. Type DoNotAllowStatic, and then press ENTER.
  6. Right-click DoNotAllowStatic, and then click Modify.
  7. In the Value data box, type 1, and then click OK.
  8. On the File menu, click Exit to exit Registry Editor.

How to create an alternative database

Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs.

To create an alternative database, you must back up the Microsoft CRM 3.0 database regularly and then restore the database from the backup. For example, you could back up the Adventure_Works_Cycle_MSCRM database and then restore it as Adventure_Works_Cycle_MSCRM_Alternate.

Note How frequently you back up the Microsoft CRM 3.0 database depends on how frequently new records are added or old records are removed. For example, you could back up the database nightly.

For more information about how to back up and restore a Microsoft SQL Server database, see the "Backup" and "Restore" topics in SQL Server Books Online. For more information about SQL Server Books Online, visit the following Microsoft Web site: After you have restored the Adventure_Works_Cycle_MSCRM database as an alternative database, you can remove the private or personal data in this alternative database. To do this, use code that resembles the following example code.

Notes
  • Performing direct SQL updates against the MSCRM database is not supported. The example code will update the CustomerAddressBase table in the Adventure_Works_Cycle_MSCRM_Alternate database and will remove the data in the ADDRESS1_LINE1 field and in the CITY field. The data for these fields will no longer be available to the Dynamic PivotTable function or to the Dynamic Worksheet function when the user clicks the Excel toolbar button in the Microsoft CRM grid views.
  • The example code must be changed if you want to prevent data from fields other than the ADDRESS1_LINE1 field and the CITY field from being exported from the alternative database.
To use the example code, follow these steps:
  1. Click Start, point to Programs, click Microsoft SQL Server, and then click Query Analyzer.
  2. In the Connect to SQL Server dialog box, click to select the Microsoft SQL server from the drop-down box, and then click OK.

    Note You must log on as a SQL Server administrator user.
  3. In the Database list on the SQL Query Analyzer toolbar, click your company�s database. For example, click the Adventure_Works_Cycle_MSCRM_Alternate database.
  4. Type the following command in the Query window, and then click Execute on the Query menu:
    USE Adventure_Works_Cycle_MSCRM_Alternate
    GO
    UPDATE CustomerAddressBase
    SET Line1 = '',
    City = ''
    

How to enable the export of data from an alternative database to Excel

Important Before you can use the alternative database, you must enable the hotfix. To do this, see the "How to enable the hotfix" section.
  1. Exit Microsoft CRM 3.0.
  2. On the Microsoft CRM server, click Start, click Run, type regedit, and then click OK.
  3. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM
  4. On the Edit menu, point to New, and then click String Value.
  5. Type AlternateDataSource, and then press ENTER.
  6. Right-click AlternateDataSource, and then click Modify.
  7. In the Value data box, type a string value that resembles the following string, and then click OK:
    DRIVER=SQL Server;APP=Microsoft Office 2003;Network=DBMSSOCN;Trusted_Connection=Yes;SERVER=ServerName;DATABASE=DatabaseName
  8. On the File menu, click Exit to exit Registry Editor.

↑ Back to the top


Status

Microsoft Dynamics CRM 3.0

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the terminology that is used to describe Microsoft software updates, click the following article numbers to view the articles in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
887283 Microsoft Business Solutions CRM software hotfix and update package naming standards

↑ Back to the top


Keywords: KB911022, kbmbsmigrate, kbqfe, kbhotfixserver, kbexpertisebeginner, kbbug, kbfix, kbexport, kbprint, kbautohotfix

↑ Back to the top

Article Info
Article ID : 911022
Revision : 8
Created on : 1/20/2012
Published on : 1/20/2012
Exists online : False
Views : 399