Created
May 31, 2023 20:09
-
-
Save JohnL4/f4a7c6bcfb8911e21a244f24d02c9e67 to your computer and use it in GitHub Desktop.
Create a DataSet from a multi-result d/b return value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reader = cmd.ExecuteReader(); | |
var ds = new DataSet(); | |
while (! reader.IsClosed) | |
{ | |
var dt = ds.Tables.Add(); | |
dt.Load( reader ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment