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

  • SEARCH
  • Home
  • 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 9167049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:17:45+00:00 2026-06-17T15:17:45+00:00

Can Simple Membership user accounts be created from SQL Server Management Studio? The only

  • 0

Can Simple Membership user accounts be created from SQL Server Management Studio?

The only methods I have found for User/Account creation are in C# when running a application:

WebSecurity.CreateUserAndAccount("userName", "password",
                        new
                        {
                            ...
                        }, false);

Is there any way to generate a hashed password that can be used in Simple Membership with t-SQL? Are the requirements for a Simple Membership hashed password known? I have found other methods for generating the password with the DefaultMembershipProvider, but the passwords are not compatible with Simple Membership.

EDIT:
I was hoping to find a process similar to this:

declare @salt nvarchar(128)
declare @password varbinary(256)
declare @input varbinary(512)
declare @hash varchar(64)

-- Change these values (@salt should be Base64 encoded)
set @salt = N'eyhKDP858wdrYHbBmFoQ6DXzFE1FB+RDP4ULrpoZXt6f'
set @password = convert(varbinary(256),N'mypassword')

set @input = hashbytes('sha1',cast('' as  xml).value('xs:base64Binary(sql:variable(''@salt''))','varbinary(256)') + @password)
set @hash = cast('' as xml).value('xs:base64Binary(xs:hexBinary(sql:variable(''@input'')))','varchar(64)')

that could be used for Simple Membership.

  • 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-06-17T15:17:46+00:00Added an answer on June 17, 2026 at 3:17 pm

    I think the easiest way would be to create then import a simple .NET assembly and use it in Sql Server.
    http://msdn.microsoft.com/en-us/library/ms189876.aspx

    Membership Services use configurations of system and encryption libraries of .NET to generate one-way hashes AFAIK, so it would not be trivial to redo the same thing in t-sql.

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

Sidebar

Related Questions

I have a simple create user wizard and custom membership provider which was taken
I have a function that updates a user in the asp.net membership provider. <AcceptVerbs(HttpVerbs.Post)>
I have set up a remote server running SQl Server Web edition and full
I have .NET MVC 3 project where I use sql membership provider and entity
I can't understand exactly how simple membership worked. After all configuration I put this
So I have implemented my own custom membership provider, currently only overwriting ValidateUser(). I
In my web.config file I have two SQL Server connection strings, one for local
I'm writing a simple membership application. I have two models, Member and Membership .
I have simple asp.net webservice has login method and its deployed on IIS server
I have a simple script updating and showing a useraccount. (working with the management

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.