problem with updateing foreign key to null value
From: Rob Huibers (Huibers_at_discussions.microsoft.com)
Date: 12/17/04
- Previous message: Irwin Dolobowsky [MS]: "Re: Importing XML Data 2 SQL SERVER"
- Next in thread: Amar Nalla [MS]: "Re: problem with updateing foreign key to null value"
- Reply: Amar Nalla [MS]: "Re: problem with updateing foreign key to null value"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 03:01:02 -0800
Hi,
I was wondering if anyone out there can help me with the following problem:
I've written an annotated XSD for retrieving some related tables from
sql-server.
It's used in an XPATH Query that populates a strongly typed dataset
(generated using xsd.exe).
So far everyting works like a dream!
There is however one nagging problem i've encounterd so far. I'm trying to
"deassign" a child from it's parent by updating it's foreign key field to
null (by using the setnull method generated by xsd.exe).
The dataset records this but when I use it to try to update the database, no
update statements are executed and no errors are raised.
Updated the child with a different parent key does however work!!!
So it would seem SQLXML doesn't detect a change when updating to null?!
Any help would be greatly appreciated.
Regards, Rob Huibers
- Previous message: Irwin Dolobowsky [MS]: "Re: Importing XML Data 2 SQL SERVER"
- Next in thread: Amar Nalla [MS]: "Re: problem with updateing foreign key to null value"
- Reply: Amar Nalla [MS]: "Re: problem with updateing foreign key to null value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|