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"
精彩评论