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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:12:41+00:00 2026-06-09T08:12:41+00:00

I have a task archive some database tables. To simplify everything, I basically have

  • 0

I have a task archive some database tables. To simplify everything, I basically have to do the following:

  1. Retrieve some rows from table 1 based on some condition
  2. Insert these rows into a table in the backup database
  3. Delete those rows from table 1

and I have to perform these operations on several tables.

This article is telling me to create separate SP based on the different CRUD operations (one for each of CRUD). As one can see, the steps I need to perform are READ, UPDATE, and DELETE. Then based on the article, I will need 3 SP for each of my tables. So if I have 10 tables I need to back up, then I need to write 30 SPs?

Could someone please tell me if this is the right practice?

Thanks.

  • 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-09T08:12:43+00:00Added an answer on June 9, 2026 at 8:12 am

    Speaking on behalf of my learning curve: When I started with databases, I didn’t care that much about things I do now. The easiest and more “logical” way is to do the CRUD in one SP, since according to your scenario things are small.
    But when it comes to scalability you really need them to be separated. It’s a good habit to start building on your programming.
    Another thing to point out is the more order you can apply to your DB, the better.

    About having to CRUD 10 tables. No, you don’t need 30 SPs (maybe you will do, but that would be a very unlikely scenario). You can use variables, parameters and stuff so you perform READ to several tables using parameters (for table names, etc). Same with other CRUD’s operations.

    So, in short: Maybe you end up having a big and complex SP for just READing tables. But that’s how it is, you work hard one time, then you re-use time and time again. (this is a good thing to do; it will definetely help/save you in the future if you don’t know OOP)

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

Sidebar

Related Questions

I have some task regarding do operations on database using ADODB in Vb.NET. Can
I have the task to integrate some commercial sharing stuff into a website. The
I have a task that runs periodically 10 second. I do some picturebox refreshing
I have the task: I have the Windows-made rar-archive (folders, files in it and
As per the following article, I have defined my service contract as http://blogs.msdn.com/b/endpoint/archive/2010/11/13/simplified-asynchronous-programming-model-in-wcf-with-async-await.aspx [ServiceContract]
I have Task and Project tables, project has many tasks. How to get the
i have task which takes a parameter and has three modes of results Example
I have task involving reading SAS .xpt files using .NET. For that I'm using
I'm using dhtmlx Gantt Chart UI component which have task list and graphical chart.
I am new this sharepoint development and i have task in hand to do

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.