New to the ASP.NET world. My default connection string in 'Web.config' (Visual Studio 2013) is initially connected to a local db as:
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-dbTest-20141022090046.mdf;Initial Catalog=aspnet-dbTest-20141022090046;Integrated Security=True" providerName="System.Data.SqlClient"/>
I have been reading about connections to remote servers (SQL Express). I was able to modify the default connection string to the following:
<add name="DefaultConnection" connectionString="Data Source=MYSERVERNAME\SQLEXPRESS;
Initial Catalog=myDatabase;
Integrated Security=True;
User ID=MYUSERNAMEISDIFFERENT;
Password=MYUSERPASSWORDISDIFFERENT"
providerName="System.Data.SqlClient"/>
The internal tables (non ASP.NET) are not available as objects to interact with and I do not see the database as a resource in the 'App_Data' folder.
Is this normal?
Should I include something "AttachDbFileName=|DataDirectory|" ?
I can connect and log in (I do see the login and new 'user' account inside MS SQLServer Management Studio in the database after it builds the ASP.Net tables.
Andy