开发者

Run aspnet_regsql on an SQL Server Express database in APP_DATA

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜