How Do I Change My Asp.net Membership Database From Express To Standard Sql?
Solution 1:
You can install membership database with this command aspnet_regsql.exe at *C:\Windows\Microsoft.NET\Framework\v2.0.50727* (adjust to your path)
You can find more details here
Solution 2:
It doesn't matter wich database server version you are using for the ASP.NET security membership/role module, apart from being SQL Server.
To set up manually this security on a server you have to run these scripts:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallCommon.sql
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallMembership.sql
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallRoles.sql
and configure web.config accordingly (see http://msdn.microsoft.com/en-us/library/6e9y4s5t.aspx).
You may run this scripts using the same database where you have your data, or you can create a new database to store user membership or role related data and run them there.
Solution 3:
you need to run aspnet_regsql. That will popup the wizard to configure your new database.
Solution 4:
- Take the MDF and LDF files created by Express Edition (usually in App_Data) and Attach them to your SQL Server 2008 Instance.
- Setup security for the new database (i.e. add a user to the database that will access the database. Make sure to give the appropriate permissions to the user)
- Change the connection string in your web.config to point to the new database
Edit: My answer assumes that you're already using your database and just want to migrate it from SQL Express to SQL Standard edition.
Post a Comment for "How Do I Change My Asp.net Membership Database From Express To Standard Sql?"