io ho seguito un esempio da un libro..
Private Function Login(ByVal NomeUser As String, ByVal strPwd As String, ByVal strconn As String) As String
Dim oDS As New DataSet()
Dim oDSTable As DataTable
Dim argSQL As String
argSQL = "SQL..."
Dim da As New SqlDataAdapter(argSQL, strconn)
'Riempio il dataSet
da.Fill(oDS, "LOGIN1")
oDSTable = oDS.Tables("LOGIN1")
If (Not oDSTable.Rows(0).IsNull("LOGIN1")) Then
Login = oDSTable.Rows(0)("LOGIN1")
Else
End If
End Function
è giusto anche questo modo???
quello che non ho capito bene è la differenza tra DATASET e DATATABLE

Rispondi quotando