Re: Sql adapter not handling null value in updategram
- From: Jan Eliasen <eliasen@xxxxxxxxxxxxx>
- Date: Mon, 19 Sep 2005 07:34:04 +0200
On Fri, 16 Sep 2005 03:44:17 -0700, Tak
<Tak@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>I am using BizTalk 2004 against Sql Server 2000.
>I have an orchestration which is calling the Sql adapter (using a
>Request-Response send port). The Request consists of an updategram that
>simply inserts a row in a sql table.
>The updategram works correctly if I do not attempt to set a null value for a
>datetime column in the row I am inserting. Unfortunately I get a sql
>exception of "Syntax error converting datetime from character string" if I
>try to set the datetime column to a null value.
>Using Sql Profiler it is immediately apparent why this is happening: a
>string is being passed through for the datetime column instead of null for
>the DatePaid and VatRate columns.
Hi
In BizTalk 2002, I would just omit the element that is to be null. So
I would just not have the attribute for the field. Does that work?
--
Jan Eliasen, representing himself and not the company he works for.
.
- Follow-Ups:
- References:
- Prev by Date: Re: SQL ADAPTER SHUTTING DOWN
- Next by Date: Re: mapping: only first node from source doc copied to destination doc
- Previous by thread: Sql adapter not handling null value in updategram
- Next by thread: Re: Sql adapter not handling null value in updategram
- Index(es):
Relevant Pages
|
Loading