<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Purge data from active View Events DB in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716815#M45323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check the following information &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1025914"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1025914&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border-top: 1px dotted #ccc; padding-top: 10px; color: #666; font-size: 0.8889em;"&gt;Always remember you're unique, just like everyone else &lt;IMG src="http://spaceship.sytes.net/" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jan 2012 14:43:51 GMT</pubDate>
    <dc:creator>amandasmith</dc:creator>
    <dc:date>2012-01-22T14:43:51Z</dc:date>
    <item>
      <title>Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716810#M45318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehow (I wish I knew) the date was set wrong when I setup our DR View installation, and due to that incorrect date when I look at my Events in View Manager there are a few items for 4/27/20 x:xx:xx PM!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to purge those out, or even purge the whole Events DB (I would rather not start completely over) but I cannot seem to find a transact statement that will clear those entries out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found plenty to purge out the historical records, but nothing on the active ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;smooter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 18:07:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716810#M45318</guid>
      <dc:creator>tcu</dc:creator>
      <dc:date>2012-01-19T18:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716811#M45319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Events DB is just a SQL database, I'm not SQL admin but I'm sure a SQL admin could do that for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simple solution, which you allude to, is just purging hte DB.&amp;nbsp; IE, delete the thing and create a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 19:35:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716811#M45319</guid>
      <dc:creator>gunnarb</dc:creator>
      <dc:date>2012-01-19T19:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716812#M45320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://communities.vmware.com/message/1881999#1881999"&gt;http://communities.vmware.com/message/1881999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your need, remove 'historical' from the table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 05:48:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716812#M45320</guid>
      <dc:creator>uday_s</dc:creator>
      <dc:date>2012-01-20T05:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716813#M45321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So thanks for the replies, I do appreciate both of them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I didn't want to purge the whole Events db is because I wanted to keep the data that was relevant.&amp;nbsp; As I said in the original post, somehow the dates got messed up, so I had 14 records at the top that were in the future.&amp;nbsp; That makes it difficult to use the Event DB as a diagnostic tool when this random data keeps showing up at the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No matter, I am going to go ahead and post what I used from the previous thread (provided by Uday - Thanks again!)&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.vmware.com/message/1881999#1881999"&gt;http://communities.vmware.com/message/1881999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp; My DB is named View_Event, and my prefix is vdi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the TOP element from the previous thread, I ran this statement to make sure I was getting just the suspect records (I actually counted the number of records looking at the Events console in View Admin as a reference before choosing a number to use in the below SELECT Statement):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TOP (20) [EventID],[Time] FROM [View_Event].[dbo].[vdievent]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return the TOP 20 records that (should, read the whole thread referenced above for cautionary info) are listed in the Events console.&amp;nbsp; I knew there were less than 20 records displayed, so I looked at the results, ensured that the number of TOP (14) records I suspected was actually accurate, and then adjusted my next DELETE Statement appropriately:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TOP (14) FROM [view_Event].[dbo].[vdievent]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walah!&amp;nbsp; So cool!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am NOT a SQL guru, and I know enough transact to get myself in a LOT of trouble, but this one wasn't a biggy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for everyone's help, and hopefully this helps someone else!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;smooter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 13:11:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716813#M45321</guid>
      <dc:creator>tcu</dc:creator>
      <dc:date>2012-01-20T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716814#M45322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super Cool. Well done. Happy that I could help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:24:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716814#M45322</guid>
      <dc:creator>uday_s</dc:creator>
      <dc:date>2012-01-20T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Purge data from active View Events DB</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716815#M45323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check the following information &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1025914"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1025914&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border-top: 1px dotted #ccc; padding-top: 10px; color: #666; font-size: 0.8889em;"&gt;Always remember you're unique, just like everyone else &lt;IMG src="http://spaceship.sytes.net/" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2012 14:43:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Purge-data-from-active-View-Events-DB/m-p/1716815#M45323</guid>
      <dc:creator>amandasmith</dc:creator>
      <dc:date>2012-01-22T14:43:51Z</dc:date>
    </item>
  </channel>
</rss>

