Results 1 to 4 of 4

Thread: Sequence Number

  1. #1
    Contributing Member
    Join Date
    Dec 2007
    Answers
    34

    Sequence Number

    Hi All,

    Without using Sequence Generator Transmation, How to create a sequence number in target table?

    Prakash


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    5

    Re: Sequence Number

    take lookup on tgt which is unconnected, call it in Exp Trans using variable ports, u need two variable ports to achive this

    Last edited by markdanny; 01-15-2008 at 07:35 AM.

  3. #3
    Contributing Member
    Join Date
    Dec 2007
    Answers
    34

    Smile Re: Sequence Number

    Hi Mark,

    I think lookup is a costly transformation, using expression itself we can achieve this task.

    SEQ_NO - Variable Port

    IIF(ISNULL(SEQ_NO),1,SEQ_NO+1)

    Please get back to us in case of queries.
    Thx
    Prakash


  4. #4
    Junior Member
    Join Date
    Jan 2008
    Answers
    5

    Re: Sequence Number

    hi Prakash,
    that works for single load, reload, or to generate numbers to a non unique or non primary key column.

    Do you have logic to generate numbers to a warehouse key? which requires to find the max key value then start giving max+1 . In this case lookup is needed to find the max key value

    please let me know if you have any questions


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact