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 261979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:28:38+00:00 2026-05-11T22:28:38+00:00

We have a partitioned view with 12 member tables. The partitioning column is a

  • 0

We have a partitioned view with 12 member tables. The partitioning column is a date, we have one table for each month. Data are continually being inserted into the table of the current month. Older tables are constant.

At the beginning of each next month a new table is going to be created and added to the view. At the same time we are going to remove the oldest table from the database but we have to preserve the data somehow because in the future we might have to reinsert those data into the database temporarily for analysis and comparison. For example in june 2011 when the partitioned view will have member tables from july 2010 to june 2011 we might have to reinsert the data of june 2009 and june 2010 temporarily.

My question is: How would you do this ‘preserve’ and then the ‘reinsert’ operation? Is there a recommended way or a well-known pattern for this?

We are using SQL Server 2005 Standard Edition. I’m a novice in database administration.

(EDIT: Why might someone use partitioning and a new table for each month? See SQL Server 2000 Partitioned Views and SQL Server 2005 Partitioned Tables and Indexes)

  • 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-11T22:28:39+00:00Added an answer on May 11, 2026 at 10:28 pm

    Why not use the bulk copy tool (bcp) to export the contents of your table to a file.

    You can then zip it up and keep it somewhere safe until you need to use the bcp tool again to recreate the table.

    To export

    bcp yourdb..Stuff200901 OUT Stuff200901.bcp -T -S yourdbsvr -r "\n" -t "|" -c
    

    To import (note you’ll need to create the table)

    bcp yourdb..Stuff200901 in Stuff200901.bcp -c -S yourdbsvr -T -t "|" -k -e err.txt
    

    Type bcp to get a full list of options at the command prompt.

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

Sidebar

Related Questions

I have tables of data samples, with a timestamp and some data. Each table
I have a table that is partitioned by TRANSACTION_DATE_TIME. Table has a column: ID.
I have a 5 year data set partitioned into quarterly tables. I also have
I have a column in a non-partitioned Oracle table defined as VARCHAR2(50); the column
I have an existing database with tables which each have 4 partitions (there are
I have some data that isn't properly partitioned (for lack of a better word).
I have a large (150m+ row) table, which is partitioned into quarters using a
I have a partitioned table that belongs to tablespace report . I want to
In Oracle I have a partitioned table. The partitions are of different sizes and
From my experience I have learn that using an surrogate INT data type column

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.