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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:04:03+00:00 2026-05-23T19:04:03+00:00

In the past I’ve used the default SQL Membership provider to secure a website.

  • 0

In the past I’ve used the default SQL Membership provider to secure a website. This worked well but required the creation of the ASP_Authentication database (using the reg_sql tool) and dozens of tables / stored procs etc.

I now have a simple website on a £10 per month host. I get a SQL Server instance as part of the deal but don’t have the ability to connect to it through SQL Management Studio. I can’t run the reg_sql tool or even take a script from a previously generated database and run that.

Actually, the ASP_Authentication database is overkill for what I need. I just was a simple username / login store that I can authenticate against. I have no need for group / roles etc.

Does anyone know of a good blog article or similar that describes how to do this?

Many thanks

Rob.

  • 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-23T19:04:04+00:00Added an answer on May 23, 2026 at 7:04 pm

    I would advise you to stick with the sql membership if you just want a simple login mechanism. You dont have to use the roles or any additional features such as secret question/answer.

    Via The Commandline

    You can use the aspnet_regsql tool locally to just generate sql scripts. You must have access to some kind of tool for managing the database so perhaps this will be enough for you?

    I have written an article on using this tool via the commandline. I also address the issue of only adding the tables you actually want to use (no need for the personalization, web parts, etc tables).

    The article is on my blog here:

    • http://www.google.co.uk/search?q=asp.net+custom+membership+provider

    It doesn’t cover how you can dump the sql scripts out to a file but it does give you a hint (it says you can use -? to view all commandline arguments). Open up a command window (start | run | cmd | enter) and type:

    asp.net v2:

    cd C:\Windows\Microsoft.NET\Framework\v2.0.50727\
    aspnet_regsql.exe -sqlexportonly C:\aspnetmembership.sql -A mrp
    

    asp.net v4:

    cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    aspnet_regsql.exe -sqlexportonly C:\aspnetmembership.sql -A mrp
    

    If the v4 doesn’t work then look in the next one up and use the latest v4 folder in there.

    You will then find a file called aspnetmembership.sql in the root of your C: drive which you can use with whatever database management they provide.

    Via Code

    There is another option to getting the tables set up which is generally less well known by the community; you can actually do it through a method in the System.Web.Management namespace. I learned this technique in a post by Peter Bromberg and keep it tucked away. Its a simple one liner:

    Management.SqlServices.Install("server", "USERNAME", "PASSWORD", "databasename", SqlFeatures.All)
    

    You can read the rest of his advice here.

    Custom Membership Provider

    To actually answer your question though, there are tons of articles on the web which explain how to create custom membership providers:

    • http://www.google.co.uk/search?q=asp.net+custom+membership+provider

    If you do decided to “roll your own” then please stick to the plan and use the membership provider framework rather than writing your own from the ground up.

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

Sidebar

Related Questions

This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit
In past I use dynamic sql and datatable to get data from database. Such
In the past, some of my projects have required me to create a movie
In the past I've worked with a number of programmers who have worked exclusively
In past i have worked with JQuery 1.2 vsdoc file which generates intellisense for
The past week or two I've been studying Maven, and I like it, but
My past CI experience is tightly coupled with CC.Net, but for sake of innovations
In the past I've used profman2 to create MAPI profiles for servers that need
I had used SosAssistin past and it was awesome, now I i tried to
In the past I have used ThreadPool.QueueUserWorkItem to spawn multiple threads from a manager

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.