Use the TableMappings.A dd() method of the DataAdapter, like this:
sqlDA.TableMapp ings.Add("Table ", "MyFirstTableNa me");
sqlDA.TableMapp ings.Add("Table 1", "MySecondTableN ame");
sqlDA.TableMapp ings.Add("Table 2", "MyThirdTableNa me");
Then you can access the tables like:
dataSet.Tables["MySecondTableN ame"]
You can read more about it at
http://msdn.microsoft.com/library/de...mnmappings.asp.
You might also want to consider a strongly-typed DataSet.
HTH
DalePres
MCAD, MCDBA, MCSE
"KimD" <Ki**@discussio ns.microsoft.co m> wrote in message
news:F6******** *************** ***********@mic rosoft.com...
I'm filling a dataset with the return of a stored procedure. The dataset
contains a number of tables which I am naming within the stored procedure,
however when I try to access the tables using the names assigned I get
errors. It doesn't seem to be assigning the names correctly within the
stored
procedure - instead it uses default names: Table, Table1 etc.
e.g. Accessing using aDataSet.Tables["some tablename"]