Click here to Skip to main content
15,919,749 members
Home / Discussions / Database
   

Database

 
GeneralRe: Problem using UPDATE [ prob Narrowed down!!] Pin
Steve McLenithan21-Mar-03 20:16
Steve McLenithan21-Mar-03 20:16 
GeneralRe: Problem using UPDATE Pin
SimonS22-Mar-03 1:41
SimonS22-Mar-03 1:41 
GeneralRe: Problem using UPDATE Pin
Richard Deeming24-Mar-03 7:44
mveRichard Deeming24-Mar-03 7:44 
GeneralRe: Problem using UPDATE Pin
Steve McLenithan24-Mar-03 7:46
Steve McLenithan24-Mar-03 7:46 
GeneralAny Access experts here Pin
Michael P Butler18-Mar-03 23:13
Michael P Butler18-Mar-03 23:13 
GeneralRe: Any Access experts here Pin
Jeremy Oldham19-Mar-03 1:39
Jeremy Oldham19-Mar-03 1:39 
GeneralRe: Any Access experts here Pin
Michael P Butler19-Mar-03 3:25
Michael P Butler19-Mar-03 3:25 
GeneralDBConcurrencyException: Delete a entry in master -detail table Pin
DionChen18-Mar-03 10:16
DionChen18-Mar-03 10:16 
Hi, all:

I have a master-detail relationship in my MS Access DB. In my WinForm application, I also created same Master-Detail relationship in my dataset. When I delete a row in my datagrid, the entries in the detail table is also deleted in the dataset due to the relationship. After an user finishs editing the data, I call daMaster.Update and then daDetail.Update. I got the DBConcurrencyException when trying to update the detail table. I think the reason is as following: when the master table is updated, it deletes the row marked with "Deleted". Since the relationship is setup in the MS Access DB, it deletes the entries in the detail table of Access DB. When the second Update is called, the record is gone and exception is thrown.

How do I fix this problem? I can not change the order of update, otherwise it will break the new entries ( must exist in the Master table first ). I guess that if I take all the relationship out in the MS Access DB, it will work fine, but I think that probably is not good thing to do.

Please help. Thanks in advance.

Dion
QuestionAlternatives to Access??? Pin
LukeV18-Mar-03 3:05
LukeV18-Mar-03 3:05 
AnswerRe: Alternatives to Access??? Pin
LukeV18-Mar-03 9:36
LukeV18-Mar-03 9:36 
GeneralRe: Alternatives to Access??? Pin
perlmunger18-Mar-03 11:01
perlmunger18-Mar-03 11:01 
AnswerRe: Alternatives to Access??? Pin
Alexander Kojevnikov18-Mar-03 22:13
Alexander Kojevnikov18-Mar-03 22:13 
QuestionCan ado.net support data warehouse metadata? Pin
mihi17-Mar-03 16:07
mihi17-Mar-03 16:07 
GeneralPerformance issues Pin
Le centriste17-Mar-03 9:37
Le centriste17-Mar-03 9:37 
GeneralRe: Performance issues Pin
DiWa17-Mar-03 20:29
DiWa17-Mar-03 20:29 
GeneralRe: Performance issues Pin
Le centriste18-Mar-03 2:54
Le centriste18-Mar-03 2:54 
GeneralSQL server and IPC Pin
Faraz Siddiqi17-Mar-03 0:40
Faraz Siddiqi17-Mar-03 0:40 
QuestionHow to retrive data from dataset object? Pin
Segal16-Mar-03 21:22
Segal16-Mar-03 21:22 
AnswerRe: How to retrive data from dataset object? Pin
leppie17-Mar-03 6:29
leppie17-Mar-03 6:29 
Questionconvert sql to oledb? Pin
jackyyeung16-Mar-03 5:52
jackyyeung16-Mar-03 5:52 
GeneralUsing MSDE in stand-alone Windows Forms projects Pin
Aroogala15-Mar-03 18:29
Aroogala15-Mar-03 18:29 
GeneralRe: Using MSDE in stand-alone Windows Forms projects Pin
nullpointer15-Mar-03 20:04
nullpointer15-Mar-03 20:04 
GeneralRe: Using MSDE in stand-alone Windows Forms projects Pin
Rob Graham17-Mar-03 4:23
Rob Graham17-Mar-03 4:23 
GeneralVariable Table Identifiers Pin
Jeff J15-Mar-03 10:41
Jeff J15-Mar-03 10:41 
GeneralRe: Variable Table Identifiers Pin
Rob Graham17-Mar-03 4:35
Rob Graham17-Mar-03 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.