Is there an easy way to set up ASP.NET membership tables in a user database?

Membership in ASP.NET is just great, as there is a ton of functionality that needs to be used, and we don't need to change anything at all.

We can even create our own provider based on the Membership database, and this gives us endless possibilities, for example, because I do not like the question / answer. I just use an email that is sent with a reset link.

But all this is done with the SQLEXPRESS file .mdf, and I wanted to use my own database for this, so I can use SQL Server Enterprise, as in Office, and not in Express Edition.

How can I easily use ASP.NET membership tables in my own database?

A few years ago, I remembered that we needed to use aspnet_reg(something) to create the correct tables, but I can no longer find this information.

I also tried to use other membership providers, namely Altairis.Web.Securityfrom CodePlex and saw Chris Pels Video on creating a new membership provider

In the solution, the Altairismodel is not complete and does not have several points, such as several applications, since it is used with only one, and Chris Pels contains many storage procedures that I need to create manually.

I'm for getting Chris's code, but I just wanted to know if something easier would be available.

All of this should be integrated into the ASP.NET MVC 2 web application.

thank

+1
3

3 :

  • , aspnet_regsql.exe: "" " > " " > " Microsoft Visual Studio 2010 " > " Visual Studio " > " Visual Studio (2010) ", aspnet_regsql. .

  • API: System.Web.Management.SqlServices Install Uninstall. / .

  • : C:\Windows\Microsoft.NET\Framework\v4.0.30319 - . 9 .sql, Install 9 .sql, . , / /etc. sql-. db aspnetdb.

+8

aspnet_regsql

: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql

+2

Visual Studio, C:\WINDOWS\Microsoft.NET\Framework\\aspnet_regsql.exe. MSDN.

Example: aspnet_regsql.exe -E -S localhost -A mr - installs database items for membership and role management on a local computer running SQL Server using Windows authentication.

0
source

All Articles