I have managed to do this by adding a connectionstring parameter specifying a System DSN.
How do I specify two different providerNames in VB project
Torquinian
21
Reputation points
I am using VS2022 and VB.
I have a Windows Forms project that currently uses providerName=System.Data.sqlclient.
I want to gradually move away from sqlclient to odbc, and my idea is to do it one Windows Form at a time as I will be able to Import the relevant System.Data namespace as I alter each Form.
When I add a second differently named Connection String into the project Settings, with one specifying System.Data.sqlclient and one specifying System.Data.odbc, the app.config is produced with both Connection Strings being odbc.
Is there a way in which I can specify both Connection Strings?
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,892 questions