I am trying to make a Database work bench application using WPF in C#. I was wondering if there is a way to execute multiple SQL queries of different type like Select, update and delete. All in one shot. Because I won't be able to use ExecuteNonQuery or ExecuteQuery since some statements will return data (Select) and some won't (Insert).
Also I won't be able to tell where does each query end because it will be one big textbox that has all of them, something like SSMS.
Anyone knows how to execute those statements at once? And how would I be able to retrieve every table returned if any?