Reputation: 6318
When I run the aspnet_regsql command in wizard mode, there is no way to select an SQL Sever Express database file even after specifying ".\SQLEXPRESS" in the database server name. How can I work around this?
Upvotes: 1
Views: 1801
Reputation: 6318
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"
Upvotes: 4