copy data from the same table in sql server

Posted on 2007-07-25
Medium Priority
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 93

Accepted Solution

Patrick Matthews earned 1000 total points
ID: 19566523
This creates a new table that has duplicate table from an existing tabe:

INTO NewTable
FROM OldTable
LVL 75

Assisted Solution

by:Aneesh Retnakaran
Aneesh Retnakaran earned 1000 total points
ID: 19566530
no, you can use the select statement

INSERT INTO urDestinationTable
SELECT * FROM sourceTable

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

807 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