<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Delete an AX company on SQL</title>
	<atom:link href="http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/</link>
	<description>The everyday life of a Dynamics AX developer</description>
	<lastBuildDate>Wed,  1 Feb 2012 16:29:10 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Eugene</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-11809</link>
		<dc:creator>Eugene</dc:creator>
		<pubDate>Tue, 02 Aug 2011 23:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-11809</guid>
		<description>&quot;I agree, deleting the companies in AX is better (“cleaner”),
on sql, it’s quick an dirty.&quot;

Come on, open your database in SSMS and see if you can find any records referencing company account you deleted in AX.

I currently run upgrade validation checklist for AX 2012, and there are heaps of tables containing reference to company accounts that are loooooong gone.

So if you like it nice and clean, do it in AX, but then run a clean up job like in this post.

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>&#8220;I agree, deleting the companies in AX is better (“cleaner”),<br />
on sql, it’s quick an dirty.&#8221;</p>
<p>Come on, open your database in SSMS and see if you can find any records referencing company account you deleted in AX.</p>
<p>I currently run upgrade validation checklist for AX 2012, and there are heaps of tables containing reference to company accounts that are loooooong gone.</p>
<p>So if you like it nice and clean, do it in AX, but then run a clean up job like in this post.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaas Deforche</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-11752</link>
		<dc:creator>Klaas Deforche</dc:creator>
		<pubDate>Mon, 01 Aug 2011 13:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-11752</guid>
		<description>Hi Henry,

I agree, deleting the companies in AX is better (&quot;cleaner&quot;), 
on sql, it&#039;s quick an dirty. 

Your disk space loss is probably due to the fact that your database size has grown, even though you deleted the data. 
There is a way to shrink your database (eg: http://technet.microsoft.com/en-us/library/ms189035.aspx).</description>
		<content:encoded><![CDATA[<p>Hi Henry,</p>
<p>I agree, deleting the companies in AX is better (&#8220;cleaner&#8221;),<br />
on sql, it&#8217;s quick an dirty. </p>
<p>Your disk space loss is probably due to the fact that your database size has grown, even though you deleted the data.<br />
There is a way to shrink your database (eg: <a href="http://technet.microsoft.com/en-us/library/ms189035.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/ms189035.aspx</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-11686</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Sat, 30 Jul 2011 06:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-11686</guid>
		<description>this is how i deleted,

In AX, i selected the company from the company account list which is at the right bottom and right-click --&gt; go to main table and i deleted it from there.</description>
		<content:encoded><![CDATA[<p>this is how i deleted,</p>
<p>In AX, i selected the company from the company account list which is at the right bottom and right-click &#8211;&gt; go to main table and i deleted it from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-11685</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Sat, 30 Jul 2011 06:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-11685</guid>
		<description>Hi,

I have the admin privileges on my stand alone computer where i installed the Dynamics AX 2009, i created the three companies with their demo data imported, but the data didn&#039;t imported successfully, so i deleted the three companies , after deleting the CEU company, my hard drive space of 4 GB was consumed ....... can anyone tell me what might be the problem, if there is any way to free that occupied space, Kindly resolve this problem ASAP.

 

Thanks in advance,

Henry</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the admin privileges on my stand alone computer where i installed the Dynamics AX 2009, i created the three companies with their demo data imported, but the data didn&#8217;t imported successfully, so i deleted the three companies , after deleting the CEU company, my hard drive space of 4 GB was consumed &#8230;&#8230;. can anyone tell me what might be the problem, if there is any way to free that occupied space, Kindly resolve this problem ASAP.</p>
<p>Thanks in advance,</p>
<p>Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Skaue</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-6576</link>
		<dc:creator>Tommy Skaue</dc:creator>
		<pubDate>Tue, 28 Dec 2010 13:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-6576</guid>
		<description>You may also have to clean up the VirtualDataAreaList table (http://msdn.microsoft.com/en-us/library/aa849574.aspx)</description>
		<content:encoded><![CDATA[<p>You may also have to clean up the VirtualDataAreaList table (<a href="http://msdn.microsoft.com/en-us/library/aa849574.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa849574.aspx</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaas Deforche</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-5735</link>
		<dc:creator>Klaas Deforche</dc:creator>
		<pubDate>Thu, 02 Dec 2010 09:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-5735</guid>
		<description>Hi Alex,

The company for a record is always stored in the DataAreaId field. Other field that contain a dataAreaId are always references to a DataAreaId field. 
When you delete an AX company, you can always end op with data that references a company that doesn&#039;t exist anymore, but that will be data stored in other companies than you are deleting. 

I&#039;m fairly sure all records will be deleted for that company, but again, this is just a &#039;quick and dirty&#039; way to do this. In a production environment, I would certainly use the standard AX way of deleting companies.</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>The company for a record is always stored in the DataAreaId field. Other field that contain a dataAreaId are always references to a DataAreaId field.<br />
When you delete an AX company, you can always end op with data that references a company that doesn&#8217;t exist anymore, but that will be data stored in other companies than you are deleting. </p>
<p>I&#8217;m fairly sure all records will be deleted for that company, but again, this is just a &#8216;quick and dirty&#8217; way to do this. In a production environment, I would certainly use the standard AX way of deleting companies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.artofcreation.be/2010/02/03/delete-an-ax-company-on-sql/comment-page-1/#comment-5716</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 30 Nov 2010 16:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.artofcreation.be/?p=432#comment-5716</guid>
		<description>There are many other tables that also have a company identifier in a field other than &quot;DataAreaId&quot;.  You have already seen from your 2nd update the table DataArea has one called &quot;Id&quot; and no DataAreaId.

I&#039;d be worried this misses some data.</description>
		<content:encoded><![CDATA[<p>There are many other tables that also have a company identifier in a field other than &#8220;DataAreaId&#8221;.  You have already seen from your 2nd update the table DataArea has one called &#8220;Id&#8221; and no DataAreaId.</p>
<p>I&#8217;d be worried this misses some data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

