<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx</link><description>ASP.NET 2.0 Websites that allow anonymous visit and anonymous user profile have a unique challenge to cleanup unused data which is generated by anonymous users who never come back. Every first visit is creating one anonymous user, page setup, and other</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1724892</link><pubDate>Sat, 19 Sep 2009 04:20:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1724892</guid><dc:creator>Alain</dc:creator><description>&lt;p&gt;Thanks for the script, and thanks for all your aticles, actually just found 2 articles for you today when i was looking for information about member profiles... And they really helped me understand the concept and i did implement them on my projects...&lt;/p&gt;
&lt;p&gt;Thanks a lot :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1724892" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1695009</link><pubDate>Thu, 11 Jun 2009 18:33:54 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695009</guid><dc:creator>Kathy Slattengren</dc:creator><description>&lt;p&gt;Thanks for the script; it works great. &amp;nbsp;However, the disk space used by the tables is not reduced after the rows have been deleted. &amp;nbsp;Is there something else I need to do? &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695009" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1686614</link><pubDate>Fri, 10 Apr 2009 13:06:03 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1686614</guid><dc:creator>Ray Akkanson</dc:creator><description>&lt;p&gt;Very helpful stored proc&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Ray Akkanson&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1686614" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1549923</link><pubDate>Sat, 22 Mar 2008 07:41:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1549923</guid><dc:creator>Lee Dumond</dc:creator><description>&lt;p&gt;I ran this on one of my DBs with which I use anonymous profiles, and it seems to work. It did get rid of a lot of rows in the users table!&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m not using widgets, pages, or UserSettings at all in this site, so the script threw several errors:&lt;/p&gt;
&lt;p&gt;Msg 208, Level 16, State 1, Line 3&lt;/p&gt;
&lt;p&gt;Invalid object name &amp;#39;Page&amp;#39;.&lt;/p&gt;
&lt;p&gt;Msg 208, Level 16, State 1, Line 3&lt;/p&gt;
&lt;p&gt;Invalid object name &amp;#39;WidgetInstance&amp;#39;.&lt;/p&gt;
&lt;p&gt;Msg 208, Level 16, State 1, Line 3&lt;/p&gt;
&lt;p&gt;Invalid object name &amp;#39;Page&amp;#39;.&lt;/p&gt;
&lt;p&gt;Msg 208, Level 16, State 1, Line 3&lt;/p&gt;
&lt;p&gt;Invalid object name &amp;#39;UserSetting&amp;#39;.&lt;/p&gt;
&lt;p&gt;Should I just comment out the lines that refer to these non-existent objects? Or is it all right to run the script as-is, and just let the errors occur?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1549923" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1541689</link><pubDate>Thu, 13 Mar 2008 05:25:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1541689</guid><dc:creator>Gamer000</dc:creator><description>&lt;p&gt;If someone would be so kind as to inform me, a simple asp user on how to use/run this DB Script. Is it something I load into a file then execute, or do I put it into a console? Any help given is much appreciated. &lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1541689" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1530570</link><pubDate>Sun, 02 Mar 2008 05:28:19 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1530570</guid><dc:creator>Suprotim Agarwal</dc:creator><description>&lt;p&gt;Quiet an interesting script indeed. Thanks for it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1530570" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1431188</link><pubDate>Tue, 01 Jan 2008 18:43:47 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1431188</guid><dc:creator>coder1</dc:creator><description>&lt;p&gt;interesting...&lt;/p&gt;
&lt;p&gt;why is everyone saying interesting? lol&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1431188" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1201916</link><pubDate>Mon, 17 Sep 2007 08:03:25 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1201916</guid><dc:creator>Holf</dc:creator><description>&lt;p&gt;Sorry... meant Omar's method!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1201916" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1201314</link><pubDate>Sun, 16 Sep 2007 20:03:18 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1201314</guid><dc:creator>Holf</dc:creator><description>&lt;p&gt;In response to Allan:&lt;/p&gt;
&lt;p&gt;Membership.DeleteUser(Request.AnonymousID, True)&lt;/p&gt;
&lt;p&gt;is fine for handling one user.&lt;/p&gt;
&lt;p&gt;But if you want to delete hundreds or thousands of users it would be very inefficient to do hundreds or thousands of individual database calls.&lt;/p&gt;
&lt;p&gt;Vikram's method handles all users in one go.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1201314" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1077871</link><pubDate>Tue, 31 Jul 2007 22:34:29 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1077871</guid><dc:creator>Fotis</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1077871" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1061371</link><pubDate>Fri, 27 Jul 2007 12:10:37 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1061371</guid><dc:creator>Martinos</dc:creator><description>&lt;p&gt;Interesting...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1061371" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1045986</link><pubDate>Sat, 21 Jul 2007 15:17:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1045986</guid><dc:creator>Anaklets</dc:creator><description>&lt;p&gt;Interesting...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1045986" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1029071</link><pubDate>Mon, 16 Jul 2007 20:53:59 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1029071</guid><dc:creator>Athones</dc:creator><description>&lt;p&gt;Interesting...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1029071" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1025084</link><pubDate>Sun, 15 Jul 2007 22:11:06 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1025084</guid><dc:creator>Panicos</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1025084" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#1022742</link><pubDate>Sat, 14 Jul 2007 20:15:19 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1022742</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1022742" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#992126</link><pubDate>Wed, 27 Jun 2007 01:50:22 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:992126</guid><dc:creator>Allan</dc:creator><description>&lt;p&gt;its easy to clean membership just call&lt;/p&gt;
&lt;p&gt; Membership.DeleteUser(Request.AnonymousID, True)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=992126" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#987342</link><pubDate>Mon, 25 Jun 2007 14:50:18 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:987342</guid><dc:creator>Carolos</dc:creator><description>&lt;p&gt;Interesting...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=987342" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#980354</link><pubDate>Fri, 22 Jun 2007 15:38:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:980354</guid><dc:creator>Apostolis</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=980354" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#978657</link><pubDate>Thu, 21 Jun 2007 17:15:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:978657</guid><dc:creator>Matthaios</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=978657" width="1" height="1"&gt;</description></item><item><title>re: Cleanup inactive anonymous users from ASP.NET Membership Tables</title><link>http://msmvps.com/blogs/omar/archive/2007/03/25/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx#949872</link><pubDate>Fri, 08 Jun 2007 10:09:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:949872</guid><dc:creator>Aristotelis</dc:creator><description>&lt;p&gt;interesting&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=949872" width="1" height="1"&gt;</description></item></channel></rss>