tags:

views:

140

answers:

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?

+4  A: 

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.

Mehrdad Afshari
A: 

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.

griegs