Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created May 31, 2023 20:09
Show Gist options
  • Save JohnL4/f4a7c6bcfb8911e21a244f24d02c9e67 to your computer and use it in GitHub Desktop.
Save JohnL4/f4a7c6bcfb8911e21a244f24d02c9e67 to your computer and use it in GitHub Desktop.
Create a DataSet from a multi-result d/b return value
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