Hello experts, I am writing an application that will require the user to enter a username and password in order to validate a sql login. As part of the application setup I am considering writing code that will use the master database and create a generic username and password. The user would then use these credentials to log into the application. What I have now is:
Dim objConnection As New SqlConnection("server=ajs-monster\SQL2005;database=master;user id = sa;password = ajszoso;") which is fine for my local box but I want the servername etc. to user entered so it can be installed on other boxes.
I tried: Dim objConnection As New SqlConnection("server=txtserver.text;database=master;user id = username; password=password;") which doesn't work.