Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Updating Child and Parent at same time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SouthSpawn - 26 Oct 2004 15:25 GMT
Hello Everyone,

I have a quick question.

Let's say you have the following situation. You have a parent table and a
child table. If I wanted to update both parent and child at the same time.
What would be the best way to do this. The reason why I am asking. Doing
two different inserts might be a bad idea. The reason being, what is the
first insert works, and the second one fail. If you have any suggestions
that would be great.

Thanks,
Mark
Justin Rogers - 27 Oct 2004 01:31 GMT
Not sure of your back-end technology, but the solution here is something
you might call a transaction. Transactions allow for failure situations to
result in a rollback to an original state.

Signature

Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

> Hello Everyone,
>
[quoted text clipped - 9 lines]
> Thanks,
> Mark
GrkEngineer - 19 Apr 2005 01:38 GMT
You might want to check out a Document/View architecture. One document and
multiple views would give you what you're looking for.

GrkEngineer

> Hello Everyone,
>
[quoted text clipped - 9 lines]
> Thanks,
> Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.