Click here to Skip to main content
15,903,540 members
Home / Discussions / Database
   

Database

 
Questionerror through connection Pin
md_refay10-Aug-06 3:33
md_refay10-Aug-06 3:33 
AnswerRe: error through connection Pin
Colin Angus Mackay10-Aug-06 4:18
Colin Angus Mackay10-Aug-06 4:18 
Questionhow to get a specific row Pin
sudharsong10-Aug-06 2:15
sudharsong10-Aug-06 2:15 
AnswerRe: how to get a specific row Pin
Eric Dahlvang10-Aug-06 2:54
Eric Dahlvang10-Aug-06 2:54 
AnswerRe: how to get a specific row Pin
fs6310-Aug-06 20:23
fs6310-Aug-06 20:23 
AnswerRe: how to get a specific row Pin
S Pandian11-Aug-06 19:21
S Pandian11-Aug-06 19:21 
QuestionForeignKeyConstrait Pin
pirogramci10-Aug-06 2:12
pirogramci10-Aug-06 2:12 
AnswerRe: ForeignKeyConstrait Pin
OldWarhorse11-Oct-06 0:40
OldWarhorse11-Oct-06 0:40 
Hi guy -
I think you have several problems here. (I just went through some of this stuff myself.)

1. AcceptRejectRule.None means that when you call ParentRow.AcceptChanges() it will not be propagated (passed on) to the child table. You ARE calling ParentRow.AcceptChanges() at some point, right?
I think what you want is AcceptRejectRule.Cascade
Either that or you will just have to call AcceptChanges() on the child table explicitly.

2.
pirogramci wrote:
ds.Relations.Add("REL", ds.Tables["A"].Columns["A2"], ds.Tables["B"].Columns["B2"]);


This format of the statement automatically creates a foreign key constraint named the same as the relation, with potentially conflicting rules from the ForeignKeyConstraint "FKC" you explicitly created. (I don't remember what the defaults are, but I think it's None.)
Use this instead: ds.Relations.Add("REL", ds.Tables["A"].Columns["A2"], ds.Tables["B"].Columns["B2"] ,FALSE);
so that it will not create the additional FK constraint and conflict with the one you already created.

I think that *should* fix it... Good luck. Smile | :)
QuestionLosing "random" characters from strings when updating tables Pin
Ed.Poore10-Aug-06 2:00
Ed.Poore10-Aug-06 2:00 
AnswerRe: Losing "random" characters from strings when updating tables Pin
Steve S10-Aug-06 3:54
Steve S10-Aug-06 3:54 
GeneralRe: Losing "random" characters from strings when updating tables Pin
Ed.Poore10-Aug-06 9:50
Ed.Poore10-Aug-06 9:50 
QuestionTripleDESCryptoServiceProvider - TripleDES encryption Pin
lehya10-Aug-06 0:52
lehya10-Aug-06 0:52 
AnswerRe: TripleDESCryptoServiceProvider - TripleDES encryption Pin
Ennis Ray Lynch, Jr.14-Aug-06 4:28
Ennis Ray Lynch, Jr.14-Aug-06 4:28 
Questionnth highest salary Pin
sudharsong9-Aug-06 21:37
sudharsong9-Aug-06 21:37 
AnswerRe: nth highest salary Pin
Arvind Srivastava9-Aug-06 21:47
Arvind Srivastava9-Aug-06 21:47 
AnswerRe: nth highest salary Pin
Ainapuram9-Aug-06 21:54
Ainapuram9-Aug-06 21:54 
GeneralRe: nth highest salary Pin
sudharsong9-Aug-06 22:49
sudharsong9-Aug-06 22:49 
GeneralRe: nth highest salary Pin
sudharsong9-Aug-06 23:38
sudharsong9-Aug-06 23:38 
AnswerRe: nth highest salary Pin
Paul Conrad10-Aug-06 5:56
professionalPaul Conrad10-Aug-06 5:56 
QuestionSelect distinct date? Pin
blurMember9-Aug-06 21:15
blurMember9-Aug-06 21:15 
Questionrunning a proc with parameter in reporting services Pin
uglyeyes9-Aug-06 16:39
uglyeyes9-Aug-06 16:39 
QuestionReturning latest location by date - Query Help [modified] Pin
martin_hughes9-Aug-06 10:06
martin_hughes9-Aug-06 10:06 
AnswerRe: Returning latest location by date - Query Help Pin
Eric Dahlvang9-Aug-06 10:28
Eric Dahlvang9-Aug-06 10:28 
QuestionCalculating Costs Pin
si_699-Aug-06 5:16
si_699-Aug-06 5:16 
AnswerRe: Calculating Costs Pin
Chris Meech9-Aug-06 5:39
Chris Meech9-Aug-06 5:39 

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.