builder(
builder("Initial Catalog") = My.Settings.Database
builder("User ID") = My.Settings.UserID
builder("Password") = My.Settings.Password
DataLayer.DataSources.Add(New SqlDataSourceItem("", builderCMPR.ConnectionString))
"Test connection here...............If fails, possibly using a try/catch show a user friendly error message and gracefully exit the app."
Thanks for the help!
Using the logic below incorporating the DataLayer.DataSources("").IsAvailable method did not work. This method always returned 'True' even though I put in invalid information. Is there something I have to do before calling .IsAvailable method to get it to return false?
Thanks for your help!
builder.DataSource = My_Invalid_DataSource
builder.InitialCatalog = My_Invalid_DatabaseName
builder.UserID = MyUserID
builder.Password = MyPassword
DataLayer.DataSources.Add(
MessageBox.Show(