开发者

Run aspnet_regsql on an SQL Server Express database in APP_DATA

开发者 https://www.devze.com 2023-02-27 06:37 出处:网络
When I run the aspnet_regsql command in wizard mode, there is no way to select an SQL Sever开发者_如何学C Express database file even after specifying \".\\SQLEXPRESS\" in the database server name. How

When I run the aspnet_regsql command in wizard mode, there is no way to select an SQL Sever开发者_如何学C Express database file even after specifying ".\SQLEXPRESS" in the database server name. How can I work around this?


Found the answer here.

This can not be done from the wizard interface. The command line parameter to do this is: aspnet_regsql -A all -C "Data Source=.\SQLEXPRESS;Integrated Security=True;User Instance=True" -d "C:\MyProject\APP_DATA\aspnetdb.mdf"

0

精彩评论

暂无评论...
验证码 换一张
取 消