1

I usually create role/membership database using command:

aspnet_regsql.exe -S (local) -E -A all

but my current web hosting company only allows to create database using phpMyLittleadmin.

How can I manually create database for asp.net role/membership?

2
  • How about of creating the role/membership locally and then just executes all the script tables? Isn't the better solution but it will work :) Commented Jun 16, 2012 at 10:48
  • Could you please tell me how to generate table creation scripts in MSSQL and execute the script tables in phpMyLittleadmin? Commented Jun 16, 2012 at 10:55

1 Answer 1

1

In the directory where your aspnet_regsql utility lives (dependent on the .NET framework version you use - probably something like C:\Windows\Microsoft.NET\Framework\v4.0.30319), there's a list of Install*.sql script files that will create the necessary tables for the ASP.NET membership and roles system.

InstallCommon.sql
InstallMembership.sql
InstallPersistSqlState.sql
InstallPersonalization.sql
InstallProfile.SQL
InstallRoles.sql
InstallSqlState.sql
InstallSqlStateTemplate.sql
InstallWebEventSqlProvider.sql

So basically you only need to figure out which script files exactly you need, and which sequence to run them in - and then just ship those (or upload those) to your site and then execute it there.

There's also the same files for uninstalling the tables and the other database objects from your database (called Uninstall*.sql).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.