Click here to Skip to main content
15,887,322 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
I have a SQL stored procedure with simple select statements that returns multiple datatables within the dataset.  The stored procedure is being called from C#/.NET code.
Dataset ds = new Dataset();
ds = return Dataset 

The stored procedure is returning the data but the datatable names end up Table, Table1, Table2,...  when the dataset is received on the .NET side.  Is there a way to define the datatable name within the stored procedure that will be used in the dataset and seen on the .NET side?
Posted
Updated 28-Jul-23 6:10am

Just use AS sql statement.

SQL
SELECT * FROM Table1 AS AnotherNameForTable.
 
Share this answer
 
Hello guys id I have inner joins in the from how can i do this thanks in advance
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900