Groups | Blog | Home
all groups > dotnet windows forms designtime > may 2005 >

dotnet windows forms designtime : DataAdapter Table Names


Christopher Weaver
5/12/2005 2:55:39 PM
Using the VS 2003 IDE, How do I specify the name that I want associated with
the table returned by the DataAdapter? It defaults to Table. I want a
DataSet to include more than one table and, of course, I can't do that if
they're both named Table.

Sunder NO[at]SPAM Online.microsoft.com
6/10/2005 7:07:14 PM
Hello Christopher
I am not sure how you are filling your datset . Are you using Typed Dataset ? There are couple of ways to change the tableName .
a) You can use TableMappings Dialog , This is a property on DataAdapter
b) You can use SqlDataAdapter1.Fill(ds,"TableName") , You can give your tableName

Thanks
Sunder
Vb.Net

--------------------
[quoted text, click to view]

AddThis Social Bookmark Button