Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 836745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:02:01+00:00 2026-05-15T05:02:01+00:00

I have an ASP.NET project where I want to keep the membership (SQL Provider)

  • 0

I have an ASP.NET project where I want to keep the membership (SQL Provider) in a separate database and the Roles/Profiles will be per application.

Question

What is the KEY that relates between the Membership database and the Roles/Profile database? Is it the UserID or UserName?

I opened up the tables in separate expolrer and notice the UserID is different in the Membership database from that in the application Roles database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:02:02+00:00Added an answer on May 15, 2026 at 5:02 am

    The best thing you can do in this case is implementing your own (custom) MemberShip and Role provider. The relationship between a membership and roles are defined by yourself and the username is commonly used for this.

    Remark on Poet’s responses:

    Perhaps i shouldn’t have mentioned “best solution”, but in my opinion the default AspNet membership and Role provider accompanies the Aspnet tables which are created using the aspnet -regsql command. If Microsoft’s Membership and Role Provider don’t fullfil your needs, you should create your own.
    If you create your own membership and role provider, it will be clear to other developers that they are dealing with a provider implementation which works or is structured in a different way.

    My conclusion is that my solution was perhaps not “the best solution”, but more a recommendation. The other thing is that the ASP.NET Providers aren’t an example of good software design anyway. We are still using it, because of their compatibility with other controls. Your solution is ok, but mine will do as well and it’s up to mr. Saif to choose a solution that fits best in his application.

    As Microsoft mentions:

    There are two primary reasons for creating a custom membership provider.

    •You need to store membership information in a data source that is not supported by the membership providers included with the .NET Framework, such as a FoxPro database, an Oracle database, or other data source.

    •You need to manage membership information using a

    database schema that is different from
    the database schema used by the
    providers that ship with the .NET
    Framework

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ASP.NET project and attached mdf database.I want to deploy it to remote
I happen to have an ASP.NET 2.0 project that I want to apply a
The Scenario I have an ASP.NET web project. I want to be able to
i need to have one project on asp.net mvc 1 but i want to
I have an ASP.NET project which is a front-end to a database. In addition
I have an MVC 2 project where I recently consolidated the auto-generated membership/roles database
I have ASP.NET project and I want to know what is better to use.
I have an ASP.NET MVC1 project and want to upgrade it directly to MVC3.
I have a ASP.NET MVC project and i want to use jQuery on them.
I have an ASP.NET project under development with my team. and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.