PC Review


Reply
Thread Tools Rate Thread

Creating a custom ASPNET provider Database

 
 
King Coffee
Guest
Posts: n/a
 
      1st Dec 2009
Hi,

I created a MemberShip and Role provider link in the web.config file to
point to a server database. But when I initially used the WebSite
Administration Tool, it created the membership/role/profile providers tables
and stored procedures in an local file: ASPNETDB.MDF. How can I recreate
these database files in my server provider database.

One time, I exported the local DB and imported into the server DB, but is an
utility to create a fresh provider files on the alternative DB ?

Thanks,
King

 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      1st Dec 2009
"King Coffee" <(E-Mail Removed)> wrote in
news:0320AA31-297B-4FDB-909F-(E-Mail Removed):

> I created a MemberShip and Role provider link in the web.config file
> to point to a server database. But when I initially used the WebSite
> Administration Tool, it created the membership/role/profile providers
> tables and stored procedures in an local file: ASPNETDB.MDF. How can I
> recreate these database files in my server provider database.


You can use the command line tool to create the tables.

To link the website admin tool to the database, set up the proper
connection string before running the tool again (just "correct" the
connection string). If you do this, and did not run the command line tool,
it should connect and create the tables anyway.

A pain? Yes. The default wants to put things in SQL Express, even if you
have another instance installed.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
King Coffee
Guest
Posts: n/a
 
      2nd Dec 2009
Thanks Gregory.

"Gregory A. Beamer" <(E-Mail Removed)> wrote in message
news:Xns9CD48076B52D4gbworld@207.46.248.16...
> "King Coffee" <(E-Mail Removed)> wrote in
> news:0320AA31-297B-4FDB-909F-(E-Mail Removed):
>
>> I created a MemberShip and Role provider link in the web.config file
>> to point to a server database. But when I initially used the WebSite
>> Administration Tool, it created the membership/role/profile providers
>> tables and stored procedures in an local file: ASPNETDB.MDF. How can I
>> recreate these database files in my server provider database.

>
> You can use the command line tool to create the tables.
>
> To link the website admin tool to the database, set up the proper
> connection string before running the tool again (just "correct" the
> connection string). If you do this, and did not run the command line tool,
> it should connect and create the tables anyway.
>
> A pain? Yes. The default wants to put things in SQL Express, even if you
> have another instance installed.
>
> Peace and Grace,
>
> --
> Gregory A. Beamer (MVP)
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
aspnet.mdf file still is created even though i created a custom provider? Sunfire Microsoft ASP .NET 1 10th Nov 2007 04:30 AM
Creating a custom Profile provider fredd00 Microsoft ASP .NET 0 1st Jun 2006 04:17 PM
How do I use another ASPNET provider aside from the default? Anonieko Microsoft ASP .NET 1 22nd Mar 2006 06:50 AM
Forward item custom form and pooling custom transport provider Tomislav Petrovic Microsoft Outlook Form Programming 3 25th Oct 2004 05:43 PM
Forward item custom form and pooling custom transport provider Tomislav Petrovic Microsoft Outlook Program Addins 0 19th Aug 2004 09:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 PM.