Results 1 to 2 of 2

Thread: Identity column - DTS

  1. #1
    -ISB Guest

    Identity column - DTS

    Having an identity column in target table, how do I use SQL 7 DTS ?

    In Import wizard, I chose 'ignore' in source, checked Enable Indenity Insert - DTS failed with a msg like - a column cannot have NULL...

    In DTS package, had Fast load and Enable Indenity checked - no luck !

    Unchecked Enable identity, do luck.

    What would be the standard procs for this since this sounds like a very common
    senario.
    What I am expecting is to insert from source and SQL would take care identity column automatically.
    Appreciate your help very much !

    -Ivan

    --------------------------------------------------------------------------------


  2. #2
    Jun Guest

    Identity column - DTS (reply)

    When you are asked for specifying "Copy Table" or "Use Query", choose "Use query" and then write your "select" Query. Do you want the Identity column from your source table get into your destination table??

    The other way to get around is to import your data from source to a temporary table and insert the data from the temporary to your destination table.

    Jun


    ------------
    -ISB at 3/27/01 8:59:38 AM

    Having an identity column in target table, how do I use SQL 7 DTS ?

    In Import wizard, I chose 'ignore' in source, checked Enable Indenity Insert - DTS failed with a msg like - a column cannot have NULL...

    In DTS package, had Fast load and Enable Indenity checked - no luck !

    Unchecked Enable identity, do luck.

    What would be the standard procs for this since this sounds like a very common
    senario.
    What I am expecting is to insert from source and SQL would take care identity column automatically.
    Appreciate your help very much !

    -Ivan

    --------------------------------------------------------------------------------


Posting Permissions

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