Thursday, March 29, 2012

Login controls and its default database

Hi,

While working with the Login controls, VS creates a ASPNETDB.MDF
database to store user accounts.

Is that database only used for the storage of login credentials and if
so, does this mean my site will need a separate database to host a
users profile information and other tables Ill be needing?

I guess nothing is stopping me using it in that way but just want to
know the 'proper' way.

Thanks in advance
VinceYou can run ASPNET_REGSQL.EXE to enable any database you want, then use a
<remove name="localSqlServer" element in the web.config to remove the default
and then replace with your own connection string. You can also use the
System.Web.Managment.Install methods to replicate the functions of
ASPNET_REGSQL programmatically.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"Vince" wrote:

Quote:

Originally Posted by

Hi,
>
While working with the Login controls, VS creates a ASPNETDB.MDF
database to store user accounts.
>
>
Is that database only used for the storage of login credentials and if
so, does this mean my site will need a separate database to host a
users profile information and other tables Ill be needing?
>
I guess nothing is stopping me using it in that way but just want to
know the 'proper' way.
>
Thanks in advance
Vince
>
>

0 comments:

Post a Comment