Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Exclamation Unanswered: Duplicate a table

    Hi everybody,

    I try desperatly to duplicate a table with an other name.

    Ex: I've the table totaldeputy, and I want duplicate it and give it a different name like totaldeputy_6.

    I don't find any informations about that. I'm sure, it's a stupid thing to do, but I don't find.

    Thanks for helping me.

    Regards
    Fred

  2. #2
    Join Date
    Jan 2004
    Posts
    51
    use the following query

    select *
    into totaldeputy_6
    from totaldeputy

  3. #3
    Join Date
    Sep 2004
    Posts
    11

    Thumbs up duplicating table

    use the following query

    select *
    into totaldeputy_6
    from totaldeputy

    before doing this we have to set database option "select into/bulkcopy/pllsort"
    from master database, the syntax for this

    sp_dboption [dbname, optname, {true | false}]

    thanks

Posting Permissions

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