G
G. Dean Blake
We currently distribute a web application to serveral servers for a
customer. We have been putting the connection string in our web.config file
under <appSettings> <add key="dbconn.Connectionstring" value="workstation
id=server025....... etc.
When we deploy the application we have to change the workstation id and
source parameters to name the server where the database will be.
We tried to simply specify localhost however VS.NET could not deal with this
because the data connection in server explorer has to have the read dev box
server name.
Questions are:
Is this the best place to put the connection string?
Is there any way to specify "localhost" and still get VS.NET to work with
that?
Is there any way I can tweak this connectionstring in the windows installer?
Thanks,
Dean
customer. We have been putting the connection string in our web.config file
under <appSettings> <add key="dbconn.Connectionstring" value="workstation
id=server025....... etc.
When we deploy the application we have to change the workstation id and
source parameters to name the server where the database will be.
We tried to simply specify localhost however VS.NET could not deal with this
because the data connection in server explorer has to have the read dev box
server name.
Questions are:
Is this the best place to put the connection string?
Is there any way to specify "localhost" and still get VS.NET to work with
that?
Is there any way I can tweak this connectionstring in the windows installer?
Thanks,
Dean