copy data from the same table in sql server

Posted on 2007-07-25
Last Modified: 2010-03-19
Hi Experts,

In my database I need to copy the same data into the same database. is there any sql key words for this function? SQL server

Question by:lyha_zm
    LVL 92

    Accepted Solution

    This creates a new table that has duplicate table from an existing tabe:

    SELECT *
    INTO NewTable
    FROM OldTable
    LVL 75

    Assisted Solution

    by:Aneesh Retnakaran
    no, you can use the select statement

    INSERT INTO urDestinationTable
    SELECT * FROM sourceTable

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    SQL display column name with condition 3 30
    Parsing the XML data to SQL Server 4 39
    What does this SQL mean? 7 33
    Php Sql Query 7 19
    In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Creating and Managing Databases with phpMyAdmin in cPanel.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now