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

  • SEARCH
  • Home
  • 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 9138709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:17:32+00:00 2026-06-17T09:17:32+00:00

Let us suppose we have a table at the remote DB server. I want

  • 0

Let us suppose we have a table at the remote DB server. I want to copy the whole table on to the sqlserver of my local machine.
Is there any sql query to do this?
Will I have to create the table schema at my local machine and then copy the table contents from the remote server to my local machine or is there any way to completely copy the table along with its schema on to my local machine?

  • 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-06-17T09:17:33+00:00Added an answer on June 17, 2026 at 9:17 am

    You can use the linked server and then you can use select * into. But you need to create constraints/indexes on the table afterwards.

    Or You create the table first and create any other constraints. You might not want to create the Indexes now. This itself is a big topic itself and it usually depends on table size and how data will be. But if you are copying the same data. I would suggest that you create at least clustered index (if the remote table has clustered index ) and create NC indexes after table is populated.

    Then you could do following

    1.use insert into using linked server. Use order by on clustered index columns.
    2. If you can not use linked servers for whatever reason. Use BCP out to a file from remote server Use order by while bcp’ing out and then bulk insert or BCP in to the local system and again use order clause.

    You do not need to use order clause if you have not created clustered index on table before loading it.
    Then you can create indexes which you need to have on tables.

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

Sidebar

Related Questions

Let's suppose we have an open source project running in a server. Is there
Ok, let's suppose we have members table. There is a field called, let's say,
Let us suppose I have a table created as follows: create table `test_table` (
Let's suppose I have all of these already provided: The name of a table
Let's suppose I have xml like this one: <Server Active=No> <Url>http://some.url</Url> </Server> C# class
i am new in sql and i want that , i have a table
Ok, let's say we have bank_account table. There is a row called money .
Let's suppose I have the following table (let's call it my_table ): CREATE TABLE
suppose i have too table folder and file let Folder have two column ID
(sorry for any bad English) Let's suppose I have models A, B, C. Each

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.