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 data
Best Solution I have found so far:
Add another program setting which holds your preffered connection string as set by the client at runtime (eg. newConnectionString)
then before using the Table Adapter:
this.myTableAdapter.Connection.ConnectionString = Properties.Settings.Default.newConnectionString;