vb.net 如何清空SqlDataAdapter
''从文件中读取数据库连接
Public Sub setConnection()
sr.BaseStream.Seek(0, SeekOrigin.Begin)
strCon = sr.ReadLine
con = New SqlConnection(strCon)
End Sub
''查询数据,返回数据集
Public Function sqlSelect(ByVal strSQL As String, ByVal strName As String) As DataSet
sda = New SqlDataAdapter(strSQL, con)
con.Open()
sda.Fill(ds, strName)
sda.Dispose()
con.Close()
Return ds
End Function
我第二次用这个的时候,DS中还有值》?怎么清空