Silly question .. "typed" connection strings

  • Thread starter Thread starter Earl
  • Start date Start date
E

Earl

I've started using these typed datasets, but of course, they automatically
assign my dev. server to be the server name. However, I am using some XML
methods to save and retrieve the connection string, so that I can deploy the
app anywhere. The silly question is how to "redirect" the string from the
properties/settings that are hardwired in by the "typed" objects to the
actual string that's been set by the user?
 
Before anyone goes astray here, I can change the actual string on the
connection, but what to do about the default strings pointing to the dev.
server being held in Settings.settings and Settings.Designer?
 
Use (local) instead of the machine name. You might also want to use the
GetComputerNameAPI call to determine the machine name and add it to the
string programmatically.
 
Back
Top