Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Membership and Roles

Reply
Thread Tools

Membership and Roles

 
 
bbawa1@yahoo.com
Guest
Posts: n/a
 
      06-29-2007
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,

 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      06-29-2007
You could use DTS to send them, if your host allows it

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com



<> wrote in message
news: oups.com...
> 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,
>



 
Reply With Quote
 
 
 
 
Roland Dick
Guest
Posts: n/a
 
      06-30-2007
schrieb:

> 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
 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      06-30-2007
That db is a just a default.

And you dont have to use the default.

Look up "membership provider" and "sql server 2000".

You don't have to use 2000, but it'll show you how to put your data into a
non default database.

There's even an Access implementation.

http://msdn.microsoft.com/vstudio/eu...f-027e6c8e15d8

I'm not recommending Access, (unless its a super small site perhaps) BUT
again, shows you how to switch out to a non default db.




<> wrote in message
news: oups.com...
> 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,
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using AD and a Table for Membership and Roles jim.stanley@alumni.usc.edu ASP .Net Security 1 03-09-2007 09:08 PM
ASP.NET 2.0's Membership, Roles, and Profile\Client Server Jeff Jarrell ASP .Net 3 05-24-2006 11:41 PM
Membership Roles and Windows Auth - CSLA.net ? =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 0 04-20-2006 10:03 PM
Membership and Roles Question Active Directory or Database? needin4mation@gmail.com ASP .Net 0 03-22-2006 04:22 PM
Application level roles + Item level roles... how to do it? Jéjé ASP .Net Security 0 09-26-2005 11:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57