I'm learning MVC and trying to follow some tutorials and this video http://channel9.msdn.com/Events/DevDays/DevDays-2011-Netherlands/Devdays002 In all tutorials a database is created automatically by EF(i suppose) in SQLEXPRESS but I want to use my SQLServer local instance. Changing default connection string:
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
to:
<add name="ApplicationServices" connectionString="data source =(local); Initial Catalog =Test;Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
doesn't help and the default database still automatically created in SQLEXPRESS. Even totally commenting it out does nothing. I tried a few tutorials, but they all base on SQLExpress and mdf file, which I don't understand the purpose of. So... How can I make EF and my app talk to my local instance or any other instance ? I can provide more information on this, as I afraid I'm missing some important concepts. Thank you!