G
Guest
Using batch SQL statements that return multiple results.
Dim ds As New DataSet
Dim cmd As New SqlCommand
cmd.CommandText = "SomeStoredProcedure"
cmd.Parameters.Add("@Id", "1")
Dim cn As New SqlConnection(ConnectionString)
cmd.Connection = cn
cmd.CommandType = CommandType.StoredProcedure
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
da.Fill(ds)
My problem is that the schema information is returned along with the data in
XML.
How do I prevent the schema information from being sent with the data?
Thanks.
Dim ds As New DataSet
Dim cmd As New SqlCommand
cmd.CommandText = "SomeStoredProcedure"
cmd.Parameters.Add("@Id", "1")
Dim cn As New SqlConnection(ConnectionString)
cmd.Connection = cn
cmd.CommandType = CommandType.StoredProcedure
Dim da As New SqlDataAdapter
da.SelectCommand = cmd
da.Fill(ds)
My problem is that the schema information is returned along with the data in
XML.
How do I prevent the schema information from being sent with the data?
Thanks.