This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!
Public Function GetDataTable(ByVal sql As String) As DataTable Dim con As New SqlConnection(Name.GetConnectionString) Dim adapter As New SqlDataAdapter() adapter.SelectCommand = New SqlCommand(sql, con) Dim myDataTable As New DataTable() con.Open() Try adapter.Fill(myDataTable) Finally adapter.Dispose() con.Close() End Try Return myDataTable End Function
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.