Membership and Roles

  • Thread starter Thread starter bbawa1
  • Start date Start date
B

bbawa1

Hi,

I am working on Membership and roles in Asp.net 2.0. I am using
logincontrols in asp.net 2.0. When I use these login controls it
automatically creates ASPNETDB.mdf database. which has it's own
tables for membership. But I can't move this database to live
server. Over live server I have only one database TWSAN I just want
to copy tables from this database to TWSAN. Is this possible.

Thanks,
 
server. Over live server I have only one database TWSAN I just want
to copy tables from this database to TWSAN. Is this possible.

It is possible, but you have to be careful which tables to copy first
because of the foreign key constraints.
It might be easier to copy your TWSAN database onto your development
machine, adapt web.config to make the membership controls use that
database, and copy the database back to the live server (unless there
are changes, e.g. inserts, made to the database in between, of course).

As for how to configure web.config to use something else than aspnet.mdf
for membership, have a look at
http://msdn2.microsoft.com/en-us/library/ms998317.aspx (or google for
aspnet_regsql membership asp.net). Especially important is the
<membership><providers> section. Aspnet_regsql is a tool that creates
the necessary tables in your database and comes with the framework.

Hope this helps,

Roland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top