I need to make two queries on two different tables and the data isn’t really related. So when I call the stored proc through my code, I should be getting a DataSet with two DataTables, one DataTable for each query. How is that done in SQL Server stored procs?
Share
Simply execute two SELECT statements in the proc:
when you then Fill() a dataset, you’ll get two datatables, one with the first resultset, the other with the second.