How do I change my asp.net membership database from express to standard sql?

前端 未结 4 552
陌清茗
陌清茗 2020-12-21 16:01

I am building an ASP.NET 3.5 (C#) application and I plan to use the membership and roles security.

I want to set this up on my SQL Server 2008 standard edition and n

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-21 16:23

    1. Take the MDF and LDF files created by Express Edition (usually in App_Data) and Attach them to your SQL Server 2008 Instance.
    2. 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)
    3. 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.

提交回复
热议问题