1

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?

1
  • As I remember there are shouldn't be problems with express version. Check if SQL service is running and that the username/password are correct. Commented Apr 21, 2011 at 6:37

1 Answer 1

4

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"

Sign up to request clarification or add additional context in comments.

1 Comment

Saved me so much hassle. I wonder why these annoyances cannot be solved easily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.