This is in my asp.net program running on my local SQL Server 2008 machine:
<add name="Personal" connectionStrin g="Data Source=Dad;Inte grated
Security=True;I nitial Catalog=Persona l"
providerName="S ystem.Data.SqlC lient"/>
<add name="LocalSqlS erver" connectionStrin g="Data Source=Dad;Inte grated
Security=True;I nitial Catalog=AspnetD b"/>
This is what I was told to do for my ISP SQL Express 2008 machine:
Copy the mdf and ldf files from your local machine up to the server.
Say I copy them up to my App_Code directory on the ISP machine (is that a
good place to put them?).
How must I change my connection strings?
Thanks in advance for any help!
PS Any way I could have both sets in my file like:
If remote
use these
Otherwise
use these
<add name="Personal" connectionStrin g="Data Source=Dad;Inte grated
Security=True;I nitial Catalog=Persona l"
providerName="S ystem.Data.SqlC lient"/>
<add name="LocalSqlS erver" connectionStrin g="Data Source=Dad;Inte grated
Security=True;I nitial Catalog=AspnetD b"/>
This is what I was told to do for my ISP SQL Express 2008 machine:
Copy the mdf and ldf files from your local machine up to the server.
Say I copy them up to my App_Code directory on the ISP machine (is that a
good place to put them?).
How must I change my connection strings?
Thanks in advance for any help!
PS Any way I could have both sets in my file like:
If remote
use these
Otherwise
use these
Comment