Date field not getting uploaded - XML SOAP

This is a discussion on Date field not getting uploaded - XML SOAP ; I have an xml field with date as follows. <dates>2005-03-03</date> I tried to upload it to SQL table. My column is defined as datetime. I wrote schema as, <xsd:element name="dates" type="xsd:date"/> But after I use bulkload and execute in VB ...

+ Reply to Thread
Results 1 to 4 of 4

Date field not getting uploaded

  1. Default Date field not getting uploaded

    I have an xml field with date as follows.
    <dates>2005-03-03</date>
    I tried to upload it to SQL table. My column is defined as datetime.
    I wrote schema as,
    <xsd:element name="dates" type="xsd:date"/>
    But after I use bulkload and execute in VB, the SQL column has a null value.

    So, I changed my xml data as,
    <dates>2005-03-03T12:04:05</dates>
    Even after changing this and executing I only get value in SQl column.
    How do I load dates into SQL?

    Regards
    Meena



  2. Default Re: Date field not getting uploaded

    Try adding a Z to the end - SQL server demands timezones...
    <dates>2005-03-03T12:04:05Z</dates>

    This also suggests you are swallowing an exception somewhere, as this
    should have raised an error?

    Marc



  3. Default Re: Date field not getting uploaded

    I tried adding an Z at the end.
    But still data is not getting loaded into SQL table.
    Any help?

    Regards
    Meena

    "Marc Gravell" <marc.gravell> wrote in message
    news:uuZPTSHxHHA.3944@TK2MSFTNGP06.phx.gbl...
    > Try adding a Z to the end - SQL server demands timezones...
    > <dates>2005-03-03T12:04:05Z</dates>
    >
    > This also suggests you are swallowing an exception somewhere, as this
    > should have raised an error?
    >
    > Marc
    >




  4. Default Re: Date field not getting uploaded

    I tried adding an Z at the end.
    But still data is not getting loaded into SQL table.
    Any help?

    Regards
    Meena

    "Marc Gravell" <marc.gravell> wrote in message
    news:uuZPTSHxHHA.3944@TK2MSFTNGP06.phx.gbl...
    > Try adding a Z to the end - SQL server demands timezones...
    > <dates>2005-03-03T12:04:05Z</dates>
    >
    > This also suggests you are swallowing an exception somewhere, as this
    > should have raised an error?
    >
    > Marc
    >





+ Reply to Thread

Similar Threads

  1. save uploaded image thumbnail to sql db image field
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 12-14-2007, 11:29 AM
  2. Date field in DD/MM/YYY
    By Application Development in forum Javascript
    Replies: 10
    Last Post: 10-31-2007, 09:20 AM
  3. Checking to see if date in date field is more than 120 days
    By Application Development in forum xharbour
    Replies: 3
    Last Post: 08-20-2007, 11:05 AM
  4. Is there a way to setup expiration date for files uploaded to FTP?
    By Application Development in forum Inetserver
    Replies: 2
    Last Post: 06-20-2007, 10:07 PM
  5. Date Field
    By Application Development in forum Adobe Acrobat
    Replies: 3
    Last Post: 01-14-2007, 11:42 PM