C# DataSet question please

I

irnbru irnbru

Hi I am learning ADO.NET, I use DOTNET 2003, I wanted to know when you
create a dataset objet and fill it with data from Data Base with
DataAdapter fill method, the fill method only creates a datatable with
data but it doesn't pass the structure of the table from the database
(primary key etc..)? Do I have to create myself the structure of the
datatable? I know a strongly typed dataset gets data and structure
though... thank you !

IRNBRU
 
O

Otis Mukinfus

Hi I am learning ADO.NET, I use DOTNET 2003, I wanted to know when you
create a dataset objet and fill it with data from Data Base with
DataAdapter fill method, the fill method only creates a datatable with
data but it doesn't pass the structure of the table from the database
(primary key etc..)? Do I have to create myself the structure of the
datatable? I know a strongly typed dataset gets data and structure
though... thank you !

IRNBRU
Look in help under FillSchema

I think that's what you are looking for.


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top