So i have a connection string saved in my visual studio application settings. It does not include a user name or password. It is an odbc oracle connection.
In my code, i need to do some in code construction. I need to append the user id and pw to the connection string from the login form. I have seen examples of how to do this with sql, but can find any examples with odbc. I know it is part of the dbconnectionstringbuilder class, but my research has been with no luck.
For the sqlserver it is like this:
Can someone help me do this using an odbc connection instead of an sqlserver?
Thank you
In my code, i need to do some in code construction. I need to append the user id and pw to the connection string from the login form. I have seen examples of how to do this with sql, but can find any examples with odbc. I know it is part of the dbconnectionstringbuilder class, but my research has been with no luck.
For the sqlserver it is like this:
VB.NET:
dim sqlbuilder as new sqlclient.sqlconnectionstringbuilder (my.settings.mysavedconnectionstring)
sqlbuilder.userid= me.username
sqlbuilder.password=me.password
dim sqlcon as new sqlclient.sqlconnection
sqlcon.connectionstring=sqlbuilder.connectionstring
sqlcon.open()
Can someone help me do this using an odbc connection instead of an sqlserver?
Thank you