473,404 Members | 2,174 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,404 software developers and data experts.

adapter updates

c# 2.0, etc, sql server 2005

i have a situation where i will be joing 3 tables in a proc
to return a row set of data to be verified by a windows service.

example:
Select m.TransactionId, m.Statusid,m.Field1,m.Field2,c1.field1,c2.field2
from myMaster m (nolock)
join child1 c1 (nolock) on c1.rowid = m.rowid
join child2 c2 (nolock) on c2.rowid =c1.rowid
where m.TransactionId = 99999999

the above is in a Proc.....along with the columns being returnd. When a
invalid row is determined
i will be changing a Statusid to be updated back at the server

i want to issue a SqlAdapter.update() , but i believe sqlAdapter does not
work for this type of Returnd row set...

so i was thinking of returning a second rows set with the transactionid and
statusid of the mymaster table this is all that needs to be updated

so a Additional select will be involved, and my windows service will
validate rowset 1 and update rowset 2 for updating the actual table
with a sqladapter update

Example
--// data to be validated
Select m.transactionId,m.Field1,m.Field2,c1.field1,c2.fie ld2 from myMaster
m (nolock)
join child1 c1 (nolock) on c1.rowid = m.rowid
join child2 c2 (nolock) on c2.rowid =c1.rowid
where m.TransactionId = 99999999

// used with sqldataAdapter on return of data to mymaster table
select m.TransactionId,m.Statusid from mymaster (nolock) where
m.transactionid= 99999999

//i could have up to 5000 rows, and want to do a batch update instead of
some other slow update

Your thoughts please
Thanks
DaveL


Sep 8 '08 #1
0 753

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

Similar topics

5
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table...
2
by: Zorpiedoman | last post by:
Up to this point, I have avoided using the Data Adapter to do my updates back to the database. I found it more straight forward to build my own SQL statements, and just execute them directly. ...
3
by: optictygre | last post by:
Hi folks. I have a couple questions about updating data from a dataset to a database using a data adapter. If I declare an adapter, set the batchupdatesize property to 0, and then call the...
2
by: Simon | last post by:
Hi all, Is it somehow possible to do do batched updates with table adapters in the same way you can with data adapters? I expected the methods to be much the same but apparently not. If it...
12
by: Randy | last post by:
Hi, Trying to pass along a table row delete to the datasource, but I'm crashing. Here is the code: Private Sub btnDeleteIngr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
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: 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
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...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.