Click here to Skip to main content
15,921,884 members
Home / Discussions / Database
   

Database

 
Questionproblem with FindBy method Pin
b2r26-Aug-06 11:58
b2r26-Aug-06 11:58 
QuestionCan you do distributed transactions across processes? Pin
trevstar26-Aug-06 5:01
trevstar26-Aug-06 5:01 
QuestionDataset VS Datagrid Pin
TheJudeDude26-Aug-06 4:24
TheJudeDude26-Aug-06 4:24 
AnswerRe: Dataset VS Datagrid Pin
Colin Angus Mackay26-Aug-06 6:08
Colin Angus Mackay26-Aug-06 6:08 
GeneralRe: Dataset VS Datagrid Pin
TheJudeDude26-Aug-06 6:11
TheJudeDude26-Aug-06 6:11 
GeneralRe: Dataset VS Datagrid Pin
Keith Malwitz26-Aug-06 6:58
Keith Malwitz26-Aug-06 6:58 
GeneralRe: Dataset VS Datagrid Pin
TheJudeDude28-Aug-06 5:46
TheJudeDude28-Aug-06 5:46 
QuestionTyped dataset with cascade delete using TableAdapter Pin
JensB26-Aug-06 3:01
JensB26-Aug-06 3:01 
Hi,
We have implemented a Windows c# application using a typed dataset (ADO.NET)
I've modified the relation so the childs get deleted when the parent is deleted. Delete action: cascade.

In the function where I process all the changes in the dataset (Dataset.GetChanges()),
I create for every table 1 adapter & call the .Update() function.
When the first adapter (for parent) is created & called the .Update() function, the parent and all its childs are deleted due to the relationship (Delete action: cascade)
A few lines further on, the adapter of the childs are called and the .Update() function throws an exception because the child is already deleted on the DB! This is very ennoying and I really don't know how to solve this problem.

Any idea how to solve this? I tested it out with my own SqlCommand object and the deletion of the parent & childs did not cause any problems.

I'd really love to keep the relationship so the childs get deleted automatically. This allows me to write less code Smile | :)

Best regards,
Jens
AnswerRe: Typed dataset with cascade delete using TableAdapter Pin
Keith Malwitz26-Aug-06 6:33
Keith Malwitz26-Aug-06 6:33 
GeneralRe: Typed dataset with cascade delete using TableAdapter Pin
JensB26-Aug-06 7:23
JensB26-Aug-06 7:23 
GeneralRe: Typed dataset with cascade delete using TableAdapter Pin
Keith Malwitz26-Aug-06 14:41
Keith Malwitz26-Aug-06 14:41 
QuestionBack up Pin
Disis25-Aug-06 22:20
Disis25-Aug-06 22:20 
QuestionDeleting columns from DataTable Pin
Vipul Mehta25-Aug-06 20:52
Vipul Mehta25-Aug-06 20:52 
AnswerRe: Deleting columns from DataTable Pin
Keith Malwitz26-Aug-06 6:39
Keith Malwitz26-Aug-06 6:39 
Questionwhat query can I use here? Pin
kozu25-Aug-06 14:13
kozu25-Aug-06 14:13 
AnswerRe: what query can I use here? Pin
Sgn_Flex26-Aug-06 2:07
Sgn_Flex26-Aug-06 2:07 
AnswerRe: what query can I use here? Pin
mr_lasseter26-Aug-06 4:45
mr_lasseter26-Aug-06 4:45 
QuestionUsing mslab to set sql 2005 cache dependency - ed invalid Pin
LuluSailor25-Aug-06 14:11
LuluSailor25-Aug-06 14:11 
AnswerRe: Using mslab to set sql 2005 cache dependency - ed invalid Pin
Mike Dimmick26-Aug-06 1:53
Mike Dimmick26-Aug-06 1:53 
QuestionProblems creating View Pin
xfitr225-Aug-06 9:52
xfitr225-Aug-06 9:52 
AnswerRe: Problems creating View Pin
Eric Dahlvang25-Aug-06 10:58
Eric Dahlvang25-Aug-06 10:58 
GeneralRe: Problems creating View Pin
xfitr226-Aug-06 11:36
xfitr226-Aug-06 11:36 
QuestionSQL CONNECTION STRING Pin
greekius25-Aug-06 2:34
greekius25-Aug-06 2:34 
AnswerRe: SQL CONNECTION STRING Pin
Colin Angus Mackay25-Aug-06 2:57
Colin Angus Mackay25-Aug-06 2:57 
AnswerRe: SQL CONNECTION STRING Pin
Not Active25-Aug-06 4:11
mentorNot Active25-Aug-06 4:11 

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.