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.

Deleting a company in Microsoft Dynamics GP


View products that this article applies to.

INTRODUCTION

This article provides the steps to properly delete a company from Microsoft Dynamics GP and prevent the error message stating the company already exists.
 
When you try to create a new company, you may receive an error message that states that thecompany already exists.
To delete a company that is no longer desired:
  1. Start Microsoft Dynamics GP, and log on with the ‘sa’ login.
  2. At the Company Login window, select a company that you do not want to delete, and then click OK.

    Note The company being deleted cannot have a user logged into it.
  3. Make sure that no users are logged on to the company that you want to delete. To do this, use one of the following methods:
    • Microsoft Dynamics GP 2013, Microsoft Dynamics GP 2010 and Microsoft Dynamics GP 10.0

      On the Microsoft Dynamics GP menu, point to Tools, point to Utilities, point to System, and then click User Activity.
    • Microsoft Dynamics GP 9.0

      On the Tools menu, point to Utilities, point to System, and then click User Activity.
  4. Select the company that you want to delete. To do this, use one of the following methods:
    • Microsoft Dynamics GP 2013, Microsoft Dynamics GP 2010 and Microsoft Dynamics GP 10.0
      1. On the Microsoft Dynamics GP menu, point to Tools, point to Utilities, point to System, and then click Delete Company.
      2. Click the lookup button. Then, click the company that you want to delete.
    • Microsoft Dynamics GP 9.0
      1. On the Tools menu, point to Utilities, point to System, and then click Delete Company.
      2. Click the lookup button. Then, click the company that you want to delete.
  5. Click Delete.

    Note When you click Delete, the company is deleted from the DYNAMICS system database.
  6. Delete the company database from the computer that is running Microsoft SQL Server. For Microsoft Dynamics GP 2010, to have us delete the company database from the computer that is running Microsoft SQL Server, go to the "Fix it for me" section.For Microsoft Dynamics GP 2013, Dynamics GP 2010, Microsoft Dynamics GP 10.0, or Microsoft Dynamics GP 9.0, to delete the company database from the computer that is running Microsoft SQL Server yourself, go to the "Let me fix it myself" section.

    Fix it for me

    For Microsoft Dynamics GP 2010, to run the scripts to delete the company database from the computer that is running Microsoft SQL Server automatically, click the Fix this problem button or link. Click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.
     

    Note this wizard may be in English only; however, the automatic fix also works for other language versions of Windows. 

    Note if you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.

    Let me fix it myself

    For Microsoft Dynamics GP 2013, Microsoft Dynamics GP 2010, Microsoft Dynamics GP 10.0 or Microsoft Dynamics GP 9.0, to run the scripts to delete the company database from the computer that is running Microsoft SQL Server yourself, use one of the following methods, depending on the version you are using:
    • In SQL Server Enterprise Manager, follow these steps:
      1. Expand the folder of the computer that is running SQL Server.
      2. Expand the Databases folder.
      3. Right-clickthe company database, and then clickDelete.
    • In SQL Server Management Studio, follow these steps:
      1. Log on to SQL Server.
      2. In Object Explorer, expand the Databases folder.
      3. Right-click the company database, and then click Delete.
    • In the Support Administrator Console utility, follow these steps:
      1. Log on to SQL Server.
      2. In the query window, type drop database name of the company database.
      3. To run the query, click the green arrow button on the toolbar.
    Note If the company database was deleted in SQL Server Enterprise Manager or in SQL Server Management Studio before it was deleted from Microsoft Dynamics GP, you must remove the orphaned records. To remove the orphaned records, run the following Clearcompanies.sql script in SQL Query Analyzer or in SQL Server Management Studio. 

    ClearCompanies.sql
     
An automated solution that deletes a company in Microsoft Dynamics GP may be available. All automated solutions are not available for all product versions. For more information, visit one of the following Microsoft Web sites.

Partners Customers For more information about how to install the Support Administrator Console utility, click the following article number to view the article in the Microsoft Knowledge Base:
 
870052 How to install the Support Administrator Console utility in Microsoft Dynamics GP
 

↑ Back to the top


Keywords: kbmbsgp10,, kbfreshness2007, kbentirenet, kbinfo, kbhowto, kbmbspartner, kbmbsmigrate, kbmsifixme, kbfixme, kb

↑ Back to the top

Article Info
Article ID : 855361
Revision : 2
Created on : 12/19/2017
Published on : 12/19/2017
Exists online : False
Views : 375