Best way to set strongly typed dataset connection string at runtime?
- by wethercotes
My Windows Forms application uses a strongly typed dataset created using the designer in Visual Studio. At runtime I would like to be able to select either the live or test database.
What is the best way to programmatically set the connection string for the dataset at runtime?