SO community
I am starting out with ADO.NET and am fairly new to programming. I had some support already from this community, which was very helpful and had a different question.
Simply put, I create a simple window form with the name of the employee and the button, so that when the user clicks the button, the selected email address of the employee is displayed in the text box of the form.
In my project, I have a database and upload a form that I connect to my database and create a datatable, as shown below:
Public Class GetEmployeeDataset
Private tbl As New DataTable
Public Sub New()
Dim strConn, strSQL As String
strConn = "Data Source=.\SQLExpress;Initial Catalog=MyDatabase;Integrated Security=True;"
strSQL = "SELECT * FROM EmployeeTable"
Dim da As New SqlDataAdapter(strSQL, strConn)
da.Fill(tbl)
End Sub
End Class
At this point, I have two questions:
- DataTable DataSet, , , DataSet DataTables, DataTable (5 , 100 ), DataTable, - ?
- , DataTable ('tbl' ), DataTable , .. EmailAddress ? SQL "SELECT EmailAddress WHERE EmployeeName = SelectedItem". DataTable, , DataView, - .
- ?
Alex