Last post May 22, 2014 06:17 AM by pprasannak
May 22, 2014 05:19 AM|kunhmateo93|LINK
I have connection to Database Name.mdf
I want to have connection to SQL DAtabase which I created NameSQL.dbo
Here it is how it looks like for now:
<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Name.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
How should it looke like?
May 22, 2014 05:41 AM|pprasannak|LINK
Please make the below change
"\" is missing
May 22, 2014 05:47 AM|kunhmateo93|LINK
But I do not want to have Name.mdf as default Database. I want to my NameSQL.dbo be a default Database. I know that sth more than just the name bust be changed. That's why I am asking.
May 22, 2014 06:17 AM|pprasannak|LINK
Use connectionstrings.com to generate the connection you need