Results 1 to 4 of 4

Thread: how to set up identity after select into is used?

  1. #1
    Join Date
    Jul 2003
    Posts
    421

    how to set up identity after select into is used?

    Hi I use select into to select part of my data form table1 to table2, after then can I still automatica increase my number one when I insert the new row?
    thank you
    ________
    Fzr1000
    Last edited by sql; 03-06-2011 at 01:33 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Yes, when you do SELECT INTO, identity property of the column is maintained.

  3. #3
    Join Date
    Feb 2003
    Posts
    1,048
    If you are asking if you can make a column an identity column after inserting data, then no.

    You can create a second field that is an identity column, set identity insert on, and insert the values from the column you inserted into previously.

  4. #4
    Join Date
    Jul 2003
    Posts
    421
    Hi, thank you for the replys!
    ________
    Free Wordpress Themes
    Last edited by sql; 03-06-2011 at 01:33 AM.

Posting Permissions

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