Hi,
The DataAdapter.Fil l method assigns those table names to the result sets. All
results sets are assigned in the order of, "Table", "Table1", "Table2", etc.
You need to map them to tables in your DataSet:
"Setting Up DataTable and DataColumn Mappings"
http://msdn.microsoft.com/library/de...mnmappings.asp
If you're not using a Typed DataSet then you can just rename the tables in
code by setting the TableName property of each DataTable.
--
Dave Sexton
"Crash" <so*********@sa n.rr.comwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
>
SQL Server 2005 SP1 Standard & Express
.NET 2.0 and ADO.NET
C#
Hi,
I have a stored procedure that returns results from 3 select
statements. When I "ExecuteDataset " from C# code the returned dataset
has 3 tables named "Table", "Table1", "Table2"...
Quest: Is there any way that I can use a hint on my select statement or
some other T-SQL option to name the 3 result sets to more descriptive
names like "Customer", "Address", "Product"?? ?