You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(varcommand=connection.CreateCommand()){command.CommandText=sqlQuery;varreader=command.ExecuteReader();varresult=newDataTable();do{result.Load(reader)} while (reader.NextResult());
return result;}
For reference, my query: SELECT 1,2; SELECT 3;
I'd expect this to store the last result set into result, but this doesn't happen. Instead I get the first result set.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have this code:
For reference, my query:
SELECT 1,2; SELECT 3;I'd expect this to store the last result set into
result, but this doesn't happen. Instead I get the first result set.Does anyone know how to accomplish this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions