Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2011
    Posts
    13

    Unanswered: ssis expression (oracle databae)

    Hi

    I am putting the below query in a OLEDB SOURCE through a variable (it is a select statement with a where clause from one date to another).

    I am getting through this expression. Can you have a check on it please.I dont know whats is wrong with this expression


    "select TestRecordtype, request_id from department

    where LOAD_TMSTP between
    (select max(END_TMSTP) LOG) and
    (TO_DATE("+RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , @[System:tartTime] ), 2) + "-"
    +RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , @[System:tartTime] ), 2) + "-"
    +RIGHT("0" + (DT_STR,4,1252)DATEPART( "yy" , @[System:tartTime] ), 2) + " "
    +RIGHT("0" + (DT_STR,4,1252)DATEPART( "hh" , @[System:tartTime] ), 2) + "."
    +RIGHT("0" + (DT_STR,4,1252)DATEPART( "mi" , @[System:tartTime] ), 2) + "."
    +RIGHT("0" + (DT_STR,4,1252)DATEPART( "ss" , @[System:tartTime] ), 2) +",'DD-MM-YY HH24.MI.SS')) "

    Thanks

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool

    Quote Originally Posted by h.singh10 View Post
    ... Etc ...
    ... Can you have a check on it please.I dont know whats is wrong with this expression
    If it's meant to be an "Oracle" sql query, It's not! Incorrect (non Oracle) syntax.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    I do not recognize it as being valid to Oracle RDBMS.

    >System:tartTime
    Looks strange to me.
    should it be "SystemtartTime" instead?
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  4. #4
    Join Date
    Dec 2011
    Posts
    13
    yes it is start time.
    I dont know how it gets misstyped

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •