We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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.
|SQL Time out only from one specific computer client||15||53|
|In the web.config conection string is there a way to tell it to use windows autertication.||2||36|
|XML and Linq - reading fields in repeating nodes||3||25|
|Datatable / Dates ?||4||32|
Join the community of 500,000 technology professionals and ask your questions.