How to fill DataSet from stored procedure?
Create a xxxCommand object around the stored procedure and then use that
object when creating the xxxDataAdapter.
Air code:
Dim cnn As SqlConnection = New SqlConnection("Data Source=MySrv;Initial
Catalog=MyDB;Integrated Security=SSPI")
cnn.Open()
Dim cmd As SqlCommand = New SqlCommand("MySP", cnn)
cmd.CommandType = CommandType.StoredProcedure
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim ds As DataSet
da.Fill(ds, "MyTable")