473,493 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataAdapter question


Is it OK to ask a DataAdapter question in here as it is a bit more ADO.NET

--

Regards

Ian
Nov 18 '05 #1
5 1092
Hi,

Ian Frawley wrote:
Is it OK to ask a DataAdapter question in here as it is a bit more ADO.NET


If it's ok to ask whether it is ok, then it's definitely ok to ask the
question itself. :)

I don't doubt that you can receive a good answer here, particularly if you
have (or want for the answer) example code in C#. However, you may also
want to try microsoft.public.dotnet.framework.adonet .

--
Chris Priede
Nov 18 '05 #2
Well, if its in C# language... What's the question?
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ian Frawley" wrote:

Is it OK to ask a DataAdapter question in here as it is a bit more ADO.NET

--

Regards

Ian

Nov 18 '05 #3
OK well here we go:

I have a Strongly typed DataSet one of the datatables within it has data in
it. I have a stored procedure that expects a parameter that returns data
that also has got to go into the same datatable. Is it possible to bind one
of the columns that is already populated to a paramter of a Dataadapters
select command and call the .Fill to execute the stored procedure which will
fill the remaining empty columns?

I hope this makes sence as its pretty tricky to explain

Ian

"Ian Frawley" <ye**@yeah.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

Is it OK to ask a DataAdapter question in here as it is a bit more ADO.NET

--

Regards

Ian

Nov 18 '05 #4

"Peter Bromberg [C# MVP]" wrote in message
Well, if its in C# language... What's the question?


Yeah its in C# I posted the question to the root of my first post :o)
Nov 18 '05 #5
Ian,

I don't know that you would be able to do this. What it seems like is
you would like to call Update and Fill together, except, that you are going
to update some of the columns in the data table with the return values from
the stored proc, in addition to filling the array.

I don't think that you will be able to do this with the data adapter
alone.

If you can wrap your stored proc so that it returns all of the values in
the stored procedure parameters, then it would work, because then you would
define your Update/Insert/Delete command to map to your columns (in the
parameters, you set the source column), and when the stored proc returns, it
should populate the row correctly.

However, as is, you would have to write custom code to do this.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Ian Frawley" <ye**@yeah.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
OK well here we go:

I have a Strongly typed DataSet one of the datatables within it has data
in it. I have a stored procedure that expects a parameter that returns
data that also has got to go into the same datatable. Is it possible to
bind one
of the columns that is already populated to a paramter of a Dataadapters
select command and call the .Fill to execute the stored procedure which
will fill the remaining empty columns?

I hope this makes sence as its pretty tricky to explain

Ian

"Ian Frawley" <ye**@yeah.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

Is it OK to ask a DataAdapter question in here as it is a bit more
ADO.NET

--

Regards

Ian


Nov 18 '05 #6

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

Similar topics

3
1987
by: Stephen Noronha | last post by:
I have a question, please correct me if I am wrong. I am assuming that a dataadapter establishes a connection and after filling the dataset or datatable or whatever, will close the connection to...
3
37795
by: Ed | last post by:
Hi, I want to load data to a table in Sql Server from a dataset table in my vb.net app using a dataAdapter. I know how to do this as follows (my question is to see if I can reduce the amount...
13
2062
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...
9
1454
by: cherishman | last post by:
When I use self-defined database, sometimes the dataadapter can't auto create insertcommand, updatecommand and deletecommand, it just only create selectcommand? But when I use these database such...
8
2671
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. ...
7
1791
by: Max | last post by:
I've included the needed tables in the DataSource. Those tables that are bound to controls I can workwith. But how do you get access to the DataAdaptors that are not bound? me.Dataset1.table...
4
11147
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
5023
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
1441
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
12492
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
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.