ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » insert date into ORACLE DATABASE[URGENT]

Post new topic  Reply to topic
 insert date into ORACLE DATABASE[URGENT] « View previous topic :: View next topic » 
Author Message
nicojvr
PostPosted: Fri Oct 24, 2003 2:42 am    Post subject: insert date into ORACLE DATABASE[URGENT] Reply with quote

Apprentice

Joined: 04 Jun 2003
Posts: 45

Hi guys, i am having alot of trouble performing an insert into the database :

Code:

passthru('insert into mds_mq_audits
   columns (AUDIT_CODE,
      MQSSER_SOURCE_SERVICE_CODE,
      MQBSUM_BILLING_SUMMARY_CODE,
      STATUS,
                   IN_AUDIT_TYPE,   
      IN_QUEUE,
      IN_EXTERNAL_REFERENCE,   
      IN_MQ_MESSAGE_ID,
      IN_MQ_CORRELATION_ID,
      IN_CREATED_DATE,
      MODIFIED_USER,
      MODIFIED_DATE)
   values(   ?,
      ?,
      ?,
      ?,
      ?,
      ?,
      ?,
      ?,
      ?,
      TO_DATE(?,''DD-MON-YYYY HH:mi:ss''),
      ?,
      TO_DATE(?,''DD-MON-YYYY HH:mi:ss''))',
       AUDIT_CODE,
      MQSSER_SOURCE_SERVICE_CODE,
      MQBSUM_BILLING_SUMMARY_CODE,
      STATUS,
                   IN_AUDIT_TYPE,   
      IN_QUEUE,
      IN_EXTERNAL_REFERENCE,   
      IN_MQ_MESSAGE_ID,
      IN_MQ_CORRELATION_ID,
      IN_CREATED_DATE,
      MODIFIED_USER,
      MODIFIED_DATE);


in this insert the date conversion of IN_CREATED_DATE doesn't work i get an error about string truncation. BUT (and this is the kicker) the second conversion (MODIFIED_DATE) is working..
the values in the 2 variables are identical.

Please Help


Thanks


Nico
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » insert date into ORACLE DATABASE[URGENT]
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.