473,385 Members | 1,461 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,385 software developers and data experts.

Configure DataAdapter for DataTable

Can you please tell me how to configure the adapter (DATA
SOURCE AND PROVIDER) for a data table that I generated
myself as a DataTable. It was easy to create it but now
accessing it isn't.
YOUR HELP IS APPRECIATED !!
Nov 20 '05 #1
5 4801
There is insufficent information here to do this. You have not stated your
source, or your control type or the nature of the data. Nor have you
provided any code.

Regards - OHM#

nitromuse wrote:
Can you please tell me how to configure the adapter (DATA
SOURCE AND PROVIDER) for a data table that I generated
myself as a DataTable. It was easy to create it but now
accessing it isn't.
YOUR HELP IS APPRECIATED !!


Regards - OHM# On**********@BTInternet.com
Nov 20 '05 #2
I was trying to do via the data adapter wizard rather
than code but I need to know how to refer to the data
source and provider for a datatable in order to do so.
Anything you can add is appreciated.

-----Original Message-----
There is insufficent information here to do this. You have not stated yoursource, or your control type or the nature of the data. Nor have youprovided any code.

Regards - OHM#

nitromuse wrote:
Can you please tell me how to configure the adapter (DATA SOURCE AND PROVIDER) for a data table that I generated
myself as a DataTable. It was easy to create it but now accessing it isn't.
YOUR HELP IS APPRECIATED !!


Regards - OHM# On**********@BTInternet.com
.

Nov 20 '05 #3

OK, basically there are the following three things

Connector - Connects to your database source SQL server, Access etc
DataAdapter - This is the go between the DataSet/table and the connector
DataSet - this contains the DataTables and Relations , constraints etc.

Your wizard will have set up something like OLEDBDATACONNECTOR1,
OLEDBDATADAPTOR1 and you may or may not have generated a DataSet so far.

In the form load event you need to fill your custom table or dataset.

'If the control is a data grid for example

YourControl.DataSource = yourTable

OLEDBDATADAPTOR1.Fill( yourTable )

OHM#



nitromuse wrote:
I was trying to do via the data adapter wizard rather
than code but I need to know how to refer to the data
source and provider for a datatable in order to do so.
Anything you can add is appreciated.

-----Original Message-----
There is insufficent information here to do this. You have not
stated your source, or your control type or the nature of the data.
Nor have you provided any code.

Regards - OHM#

nitromuse wrote:
Can you please tell me how to configure the adapter (DATA
SOURCE AND PROVIDER) for a data table that I generated
myself as a DataTable. It was easy to create it but now
accessing it isn't.
YOUR HELP IS APPRECIATED !!


Regards - OHM# On**********@BTInternet.com
.


Regards - OHM# On**********@BTInternet.com
Nov 20 '05 #4
Cor
Hi

Nitromuse, did you do a rightclick on the dataadapter on your form,
with that you can configure it and after that make the dataset.

I hope that was what you where looking for?

Cor

Nov 20 '05 #5
My problem is that I don't get anywhere with the Wizard
because I can't tell it the proper data source for my
self created datatable. If it were an outside database
it would be easy. I got all you had to say about the
connector, etc, I just need to know how to declare the
provider and source for a datatable, not a database.
Thanks again,
-----Original Message-----

OK, basically there are the following three things

Connector - Connects to your database source SQL server, Access etcDataAdapter - This is the go between the DataSet/table and the connectorDataSet - this contains the DataTables and Relations , constraints etc.
Your wizard will have set up something like OLEDBDATACONNECTOR1,OLEDBDATADAPTOR1 and you may or may not have generated a DataSet so far.
In the form load event you need to fill your custom table or dataset.
'If the control is a data grid for example

YourControl.DataSource = yourTable

OLEDBDATADAPTOR1.Fill( yourTable )

OHM#



nitromuse wrote:
I was trying to do via the data adapter wizard rather
than code but I need to know how to refer to the data
source and provider for a datatable in order to do so.
Anything you can add is appreciated.

-----Original Message-----
There is insufficent information here to do this. You have not stated your source, or your control type or the nature of the data. Nor have you provided any code.

Regards - OHM#

nitromuse wrote:
Can you please tell me how to configure the adapter (DATA SOURCE AND PROVIDER) for a data table that I generated myself as a DataTable. It was easy to create it but now accessing it isn't.
YOUR HELP IS APPRECIATED !!

Regards - OHM# On**********@BTInternet.com
.


Regards - OHM# On**********@BTInternet.com
.

Nov 20 '05 #6

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

Similar topics

5
by: randy | last post by:
Hello all, I have a DataTable which I am building column by column and adding rows after each new column. The DataTable columns match the columns in my database table. I'm building the...
13
by: Doug Bell | last post by:
Hi, I thought I had this sorted this morning but it is still a problem. My application has a DataAccess Class. When it starts, it: Connects to a DB (OLE DB) If it connects it uses an...
8
by: Zorpiedoman | last post by:
I keep getting a concurrency exception the second time I make a change and attempt to update a dataadapter. It appears this is by design, so there must be something I can do to avoid it. ...
2
by: susan.f.barrett | last post by:
Hi, Despite me being able to type the following in to SQL Server and it updating 1 row: > updatestockcategory 1093, 839 In my code, it is not updating any rows. dataSet = new DataSet();
6
by: Rich | last post by:
Dim da As New SqlDataAdapter("Select * from tbl1", conn) dim tblx As New DataTable da.Fill(tblx) '--works OK up to this point da.UpdateCommand = New SqlCommand da.UpdateCommand.Connection =...
4
by: George | last post by:
Got a question about the side effect of DataAdapter.Update() and DataTable.GetChanges(). Say I set up a DataTable and a DataAdapter in a class. Delete (Not remove) a row in the data table and...
5
by: George | last post by:
I have set DataAdapter.AcceptChangesDuringUpdate = true; However, I find that I still need to call AcceptChanges on the associated DataTable, DataTable.AcceptChanges(); Has anyone...
5
by: limsy | last post by:
Hi ppl, Sorry for asking such a NEWBIE question. I tried looking for answers but cant find. Maybe its too easy. :( I'm used to manual code ADO rather than this .NET wizard and stuff... and i am...
3
by: Rich | last post by:
What is the diffeence bewtween a dataAdapter.InsertCommand and dataAdapter.SelectCommand (and dataAdapter.UpdateCommand for that matter)? Dim da As SqlDataAdapter conn.Open da.SelectCommand =...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.