dbTalk Databases Forums  

Date Parameters with Provider ibmdadb2

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Date Parameters with Provider ibmdadb2 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brad
 
Posts: n/a

Default Date Parameters with Provider ibmdadb2 - 07-14-2004 , 06:34 AM






Good morning,

When I try to use a Global Variable created in an ActiveX script within a SQL or data driven task as a date parameter, I get an error message "wrong number of arguments."

I can execute the exact same SQL against the database substituting the date parameter holders with the exact values in the variables, but when I parameterize them, it fails with the above error.

I've tried using strings as the date parameter in the format of '2004-04-01' which is generally what I use when querying DB2 - including and discluding the apostrophes. I've used the SQLServer date datatype which is properly populated.

Has anyone else had trouble with this? Any solutions?

Thank you very much for your help.

-Brad

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.