Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safe to remove unused ASP.NET membership tables?

I'm going to be using the ASP.NET Membership model on my website. However, there are multiple tables that I do not plan to ever use, such as: aspnetPaths aspnetPersonalizationAllUsers aspnetPersonalizationPerUser aspnetProfile aspnetWebEventEvents

Is it safe to delete these tables or will I cause problems with the way ASP.NET's membership framework works (in System.Web.Security) ?

I really like keeping things clean and these tables are bothering me.

like image 776
Arthur Chaparyan Avatar asked Jan 30 '09 10:01

Arthur Chaparyan


1 Answers

Use the aspnet_regsql.exe and choose which parts you want to remove:

-R all|m|r|p|c|w

all - All services, including common tables and stored procedures shared by the services

m - Membership

r - Role Manager

p - Profile

c - Web Parts Personalization

w - Web Events

In the future, run the tool with the -A mr parameter to only add the membership and role manager.

like image 76
Davy Landman Avatar answered Oct 16 '22 13:10

Davy Landman