2

i downloaded asp.net mvc and i am playing around with the main tutorial.

In the upper right, when i click log in or register new user, i am trying to understand where this data is being stored. I dont see any SQL database or any other data store.

i see something that says this below:

                // Attempt to register the user
            MembershipCreateStatus createStatus = MembershipService.CreateUser(userName, password, email);

but again, i can't find the actual data store.

Am i missing something?

2 Answers 2

5

It will copy aspnetdb.mdf file to App_Data directory when you use membership services for the first time.

You can manually create a SQL Server database by aspnet_regsql and set the ApplicationServices connection string in web.config.

0

You may also want to take a look at the SQL Server Publishing Wizard found here.

It essentially allows you to copy the database structure and/or data to a .sql file that you can then import into your primary SQL database.

I don't particularly like the aspnetdb approach but that's my personal opinion.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.