473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C# DataSet question please



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

*** Sent via Developersdex http://www.developersdex.com ***
Feb 11 '06 #1
3 1228
On Sat, 11 Feb 2006 12:54:27 -0800, irnbru irnbru
<le*********@yahoo.com> wrote:


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

*** Sent via Developersdex http://www.developersdex.com ***

Look in help under FillSchema

I think that's what you are looking for.
Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Feb 12 '06 #2
or MissingSchemaAction
"Otis Mukinfus" <ph***@emailaddress.com> wrote in message
news:cv********************************@4ax.com...
On Sat, 11 Feb 2006 12:54:27 -0800, irnbru irnbru
<le*********@yahoo.com> wrote:


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

*** Sent via Developersdex http://www.developersdex.com ***

Look in help under FillSchema

I think that's what you are looking for.
Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com

Feb 12 '06 #3
Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Feb 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
4
by: Steve Donnor | last post by:
Here's my question.. I have a Dataset which has populated a datagrid with information from an AS400 That SQL looks like this "Select MASYS, MAFLD, MADATA, MAEQV from QS36F.MAPDATA WHERE MASYS =...
5
by: Grant | last post by:
Hello, How come when I add a new row to my dataset table it shows up as changed (agencyData.Haschanges() = True) but when I delete a row the dataset thinks here are no...
3
by: Michelle Stone | last post by:
Thanks for your message I tried again and again... but didn't work. Can u please detail the exact steps to perform? This is what I do. In field explorer, i right-click the dataset to update....
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
1
by: Sachin | last post by:
Hi, I am working on ASP.Net 2.0 Beta 2 I am having problems creating crystal report using dataset I created a new dataset (DS_ExpCode) and a datatable (DT_ExpCode) under App_Code folder....
12
by: Bishoy George | last post by:
I have a dataset called ds1 filled with 2 tables Employees and Customers from Northwind database. I have dropdownList called ddLastName with the following properties: ddLastName.DataSource =...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
7
by: SteveT | last post by:
Can someone point me in the right direction? Somewhere I read that you reference a strongly typed dataset as if it were a class structure. For example, <SomeTests> <TestsGroups> <Group>...
3
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.