Create ASP.Net membership database structure in existing database

How do I create all the ASP.Net tables, sprocs etc in a database that already has data (non conflicting) in it.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

If you have access to the database, run the following commands in command line:

cd "C:WindowsMicrosoft.NETFrameworkv2.0.50727"
aspnet_regsql

That will start a guide that will help you add all the tables and sprocs to any table you can access from that computer.

Method 2

From an article on 4GuysFromRolla, go to the %WINDOWS%Microsoft.NETFrameworkv2.0.50727 directory and run

-- To use Windows Authentication (i.e., a "trusted connection"), use:

aspnet_regsql.exe -S <server> -E -d <database> -A all

-- To use SQL Server credentials (a UserID and Password), use:

aspnet_regsql.exe -S <server> -U <login id> -P <password> -d <database> -A all

There is also a wizard to help you through the steps.

Method 3

This should help you:

http://blog.krisvandermast.com/CreateMembershipTablesInAnotherDatabaseThanTheStandardAspnetdbmdf.aspx


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x