Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6211997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:26:05+00:00 2026-05-24T06:26:05+00:00

What is the difference between using SELECT … INTO MyTable FROM… and INSERT INTO

  • 0

What is the difference between using

SELECT ... INTO MyTable FROM...

and

INSERT INTO MyTable (...)
SELECT ... FROM ....

?

From BOL [ INSERT, SELECT…INTO ], I know that using SELECT…INTO will create the insertion table on the default file group if it doesn’t already exist, and that the logging for this statement depends on the recovery model of the database.

  1. Which statement is preferable?
  2. Are there other performance implications?
  3. What is a good use case for SELECT…INTO over INSERT INTO …?

Edit: I already stated that I know that that SELECT INTO… creates a table where it doesn’t exist. What I want to know is that SQL includes this statement for a reason, what is it? Is it doing something different behind the scenes for inserting rows, or is it just syntactic sugar on top of a CREATE TABLE and INSERT INTO.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:26:05+00:00Added an answer on May 24, 2026 at 6:26 am
    1. They do different things. Use INSERT when the table exists. Use SELECT INTO when it does not.

    2. Yes. INSERT with no table hints is normally logged. SELECT INTO is minimally logged assuming proper trace flags are set.

    3. In my experience SELECT INTO is most commonly used with intermediate data sets, like #temp tables, or to copy out an entire table like for a backup. INSERT INTO is used when you insert into an existing table with a known structure.

    EDIT

    To address your edit, they do different things. If you are making a table and want to define the structure use CREATE TABLE and INSERT. Example of an issue that can be created: You have a small table with a varchar field. The largest string in your table now is 12 bytes. Your real data set will need up to 200 bytes. If you do SELECT INTO from your small table to make a new one, the later INSERT will fail with a truncation error because your fields are too small.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the difference between using a new thread and using a thread from
Although there is no reason (apart maybe from aesthetics) to use INSERT INTO SELECT
If I have something like: CREATE INDEX idx_myTable_field_x ON myTable USING btree (field_x); SELECT
It doesn't seem like there's a difference between: SELECT a.col1, b.col2 FROM table a
What are the difference between .Select, .Any, and .Count when using LINQ Do you
What is the difference between using the Runnable and Callable interfaces when designing a
What's the difference between using a define statement and an enum statement in C/C++
I see little functional difference between using a property public readonly property foo as
What is the difference between using system() to execute a binary and using the
Is there a difference between using a makefile and a Makefile?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.