简单程序翻译,考考大家哦~!
Dim strSQL as string = "SELECT FirstName,LastName FROM Employees;"
Dim strConnection as String = "server=EWANB;database=Northwind; User Id=sa;password=;"
Dim objDataSet As New DataSet()
Dim objConnection As New SqlConnection(strConnection)
Dim objDataAdapter As New SqlDataAdapter(strSQL, objConnection)
objDataAdapter.Fill(objDataSet, "Employees")
Dim objDataView As New DataView(objDataSet.Tables("Employees"))
dgrEmployees.DataSource = objDataView
dgrEmployees.DataBind()
1。请用一段易理解的话来翻译以上程序?
2。请用一段专业的话来翻译以上程序?