DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 9th, 2007, 05:05 PM
oakwoodman oakwoodman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 2 oakwoodman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 40 sec
Reputation Power: 0
DB2 UDB LUW Command Line Parameter

I have the following in my procedure:


CREATE PROCEDURE x_proc ( IN from_date timestamp
, IN to_date timestamp
, IN data_center char(1)
, IN run_option int)

My db2 command line is:

db2 -t -v -z x_log "call x_proc('2007-02-09-01.00.00.000000', '2007-02-09-01.00.00.000000', 'X', 1)"

And I get the following error.

SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007

Something with the timestamp, but I haven't been able to figure it out just yet. Any thoughts? Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > DB2 UDB LUW Command Line Parameter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway