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 198943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:58:51+00:00 2026-05-11T16:58:51+00:00

I have a asp.net web project I am working on, and found out my

  • 0

I have a asp.net web project I am working on, and found out my roles and such are stored in an .mdf file. While reading on attempting to connect to it via SQL Management Studio (using SQLExpress 2005), I found this article:

https://help.maximumasp.com/SmarterTicket/Customer/KBArticle.aspx?articleid=878

Now, my question is – should I be doing this? I am going to upload the website to a hosting provider when finished, and would like the process to be as smooth as possible.

Does one normally just move the MDF file to the server along with the website, or is it better to have the information stored inside SQL Server itself? I do have a DB already for the website… can I integrate asp.net’s role information into my own DB so that I only have a single DB to manage?

Thanks for reading,
~~Kolten

  • 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-11T16:58:51+00:00Added an answer on May 11, 2026 at 4:58 pm

    Using the ASP.NET membership provider is a valid way of managing your user credientials. Uploading the MDF file introduces the risk that someone may be able to get your MDF file and then get all of your users details. Having this stored in a SQL database provided by your hosting environment would usually be more secure, provided that the connection details aren’t compromised, and you don’t expose your self to SQL Injection attacks and your provider also doesn’t expose themselves to SQL injection attacks.

    The Membership information can be stored in the same database as the rest of your application as long as there is no name conflicts with the membership tables. You can create the tables required by specifying your database connection details on the aspnet_regsql command line.

    Inside your web.config file you will need to modify the roleManager and membership providers so that you can specify the connection string to use. i.e.

    <system.web>
        <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
          <providers>
            <remove name="AspNetSqlRoleProvider" />
            <add name="AspNetSqlRoleProvider" connectionStringName="MembershipSQLConnectionString"
                 applicationName="/"
                 type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </roleManager>
    </system.web>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you create an ASP.NET web file project you have direct access to the
I have a Silverlight project (with ASP.net MVC web project) Suddenly, when I press
I have a really simple ASP.NET web application and a web setup project that
We have a pretty big ASP.NET WebForm (web application) project with a lot of
I have a standard ASP.NET MVC (RC Refresh) web project, with the standard ASP.NET
I have a solution that contains two projects. One project is an ASP.NET Web
Im working on a web project in ASP .NET MVC 2. In this project
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have ASP.NET web pages for which I want to build automated tests (using
I have some ASP.NET web services which all share a common helper class they

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.