Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
Private Sub GetListOfUserNames() Try Dim myConnection As MySqlConnection myConnection = New MySqlConnection(strConnection) myConnection.Open() Dim daUser As New MySqlDataAdapter("Select strUsername from Users order by strUsername asc", myConnection) Dim dsUser As New DataSet daUser.Fill(dsUser) myConnection.Dispose() For i As Integer = 0 To dsUser.Tables(0).Rows.Count - 1 strNames.Add(dsUser.Tables(0).Rows(i)("strUsername").ToString) Next Catch ex As Exception MsgBox("Error getting Username Information.") End Try End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.