Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    115

    Unanswered: COPY TABLE users AS usersCopy WHERE UserId > 500 ?

    I must extract rows (with criteria) from a table with a few millions of rows in MS SQL 2000

    Is there a way to COPY a table ?

    if so is there a way to COPY it in a more selective way ?
    something like :
    COPY TABLE users AS usersCopy WHERE UserId > 500

    thank you

  2. #2
    Join Date
    Jun 2003
    Posts
    269

    Thumbs up Re

    Code:
    select * into usersCopy from Users where UserId >500
    I love cursor,though I never use it.Cos' I dont want to misuse it.
    ----------------------------------------------

    ----cheers
    ----http://mallier.blogspot.com

  3. #3
    Join Date
    Jun 2005
    Posts
    115
    that is what I call 100% GENIAL !!!

    thanks 1000 ton !

Posting Permissions

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