I'm new to VB.NET. I am creating a windows form app where a user will be presented for credentials (server, database, user id, password) to connect to a SQL Server database. I am having the users enter these through TextBoxes. Is it possible to pass the TextBox's Text property to the SqlConnection string?
I've tried something along the lines of:
Expand|Select|Wrap|Line Numbers
- Dim objConnection As New SqlConnection("server=" & txtServer.text & ";database=" & txtDatabase.text & ";user id=" & _
- txtUserName.text & ";password=" & txtPassword.text)
Thanks!