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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:25:50+00:00 2026-06-04T16:25:50+00:00

I have one table in my database that I want to update each year.

  • 0

I have one table in my database that I want to update each year. I need to pull two of the column values from my asp.net page and populate the rest from my database already.

I have a budget table for each year, the year updates automatically on my page according to the month of the year. When the month changes to a specific month I need the stored procedure to update itself to add the budget items with a blank amount so that I can enter the amounts manually.

Old Data:

Year Code1 Code1Description Code2 Code2Description BudgetAmt($750.00) Initials 

New Data:

NewYear Code1 Code1Description Code2 Code2Description BudgetAmt($0.00) Initials

This so that when I enter editmode on my gridview the codes will already be there just with blank budgetamt for me to update. Does this make sense? Is it something that is possible?

  • 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-04T16:25:51+00:00Added an answer on June 4, 2026 at 4:25 pm

    You are having the webpage call the stored procedure? In which case simply create a table with the item codes you want to be populated:

    ALTER PROCEDURE [dbo].[stp_TemplateSPROC]
    (@year as int) AS
        INSERT tbl_webpage (Year, code1, code1desc, code2, code2desc, spending, Initials) 
          Select 
             @Year [Year], code1, code1desc, code2, code2desc, 
             0 as spending, '' as Initials
          from tablewithcodesin
    

    This, when called, would populate a table with the Year, codes, and zeros/blanks for you to fill in.

    tablewithcodesin would just be Code1 Code1Description Code2 Code2Description

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

Sidebar

Related Questions

I have a ms access database that has one table for each photo album
I want to have one table with two TIMESTAMP columns. One column to keep
I have a table in database that is having some fields one of which
I have a MS access database. In that, one table consists of questions and
I have one database table TABLE_TIPS with two value 1. tips_id (auto increment) 2.
I have to copy a bunch of data from one database table into another.
In a MySQL database I have two tables linked in a join. One table
I have just imported a database table from a previous site, and one of
I want to have a database table that keeps data with revision history (like
I have one table that stores values with a point in time: CREATE TABLE

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.