In my application i have added a datasource (dataset) called ORAP_DS. When asked if i should save the credentials in the connection string I said no. This is because each user will have a different username and password. So the application opens to a login form. The user enters their username and pw. How do I insert that into the connection string?
One thing I think i saw was if I made the connection string like this:
DATA SOURCE=ORAP;USER ID={username};PASSWORD={pwd};Persist Security Info=False
Then in my login for on ok click i have:
This is where I am at now. How do I use have the ORAP_DS (dataset) use this connection string instead of the connection string that is in settings?
One thing I think i saw was if I made the connection string like this:
DATA SOURCE=ORAP;USER ID={username};PASSWORD={pwd};Persist Security Info=False
Then in my login for on ok click i have:
VB.NET:
'Build ConnectionString based on user login details
Dim con As String = ConfigurationManager.ConnectionStrings("ASF.My.MySettings.ORA_Conn").ConnectionString
con = con.Replace("{username}", Trim$(UsernameTextBox.Text))
con = con.Replace("{pwd}", PasswordTextBox.Text)
This is where I am at now. How do I use have the ORAP_DS (dataset) use this connection string instead of the connection string that is in settings?