Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
brijesh1991
Partner - Specialist
Partner - Specialist

Incremental Load Date format issue

I had incremental date: Last Update Date in M/DD/YYYY hh:mm:ss TT format.

Example: 8/11/2009 10:37:00 AM

While taking incremental Load;

Load * from table where  [Last Update Date] >= $(vThisExeTime) and [Last Update Date] <=$(vLastExeTime)

where vThisExeTime= chr(39) & Date(now(), 'M/DD/YYYY hh:mm:ss TT') & chr(39)

and the same is storing at end of the entire script into vLastExeTime.

But I am getting error: Attached image

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I haven't worked with Sybase, but from the doc it appears timestamps should be of the ISO 8601 standard format  of YYYY-MM-DD hh:mm:ss. So try presenting your SQL WHERE arguments in that format.

-Rob

View solution in original post

6 Replies
tresesco
MVP
MVP

Try putting single quotes around variable expansion, like: ' $(vThisExeTime)'

Edit: you might have to redefine your variable excluding chr(39)

nilesh_gangurde
Partner - Specialist
Partner - Specialist

See this link, this will help you.

Incremental Load Help??

-Nilesh

brijesh1991
Partner - Specialist
Partner - Specialist
Author

Thanks TRESESCO for your idea... but unfortunately not working!

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I haven't worked with Sybase, but from the doc it appears timestamps should be of the ISO 8601 standard format  of YYYY-MM-DD hh:mm:ss. So try presenting your SQL WHERE arguments in that format.

-Rob

tresesco
MVP
MVP

Possibly a format mismatch. Please be doubly sure of it; check little things like, if any space difference, or so.

brijesh1991
Partner - Specialist
Partner - Specialist
Author

Hi Rob,

you are wonderful, even if you haven't worked on sybase, your idea worked. . .!

Thanks brother!!! Thanks!