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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:03:27+00:00 2026-05-28T00:03:27+00:00

MS SQL Srvr 2005/2008 on Win Srvr 2003+ I am only updating 1 row

  • 0

MS SQL Srvr 2005/2008 on Win Srvr 2003+

I am only updating 1 row at a time, the UPDATE is in response to a user change on a web form.

I am updating a few columns in a table using the PK. The table has 95 columns. Typically 1 FK column and 1 or 2 other columns will be updated. The table has 6 FK’s.

Is it of benefit for me to dynamically generate the UPDATE statement only having the columns being changed in the SET portion of the UPDATE, or stick with the current Stored Procedure using a parameterized update with all of the columns?

Currently, and not subject to immediate change, the data from the web form is posted back to the server and is available for the update. I can’t jump to an AJAX scenario where only changed data is posted back to the server from the client browser at this point.

Thanx,
G

  • 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-28T00:03:27+00:00Added an answer on May 28, 2026 at 12:03 am

    SQL Server reads and writes “pages” that consist of 8kb of data. Typically, a page will contain one or more row.

    Since disk I/O is the expensive part of an update, the cost of updating half the columns and all the columns is roughly the same. It will still result in 8kb disk I/O.

    There’s another aspect, that usually doesn’t come into play because SQL Server writes in 8kb pages. But imagine your row looks like this:

    id int identity
    col1 varchar(50)
    col2 varchar(50)
    

    Now if you update col1 to be 5 bytes longer, col2 has to be moved forward by five bytes. So even if you don’t update col2, it will still have to be written to disk.

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

Sidebar

Related Questions

SQL Server 2005/2008 Express edition has the limitation of 4 GB per database. As
SQL Server (2005/2008) Each of the below statements have the same result. Does anyone
SQL Server 2008. Is it possible to create Change Data Capture (or Change Tracking)
SQL 2008 / 2005 I have SQL Query Syntax issue on Case Statement -
SQL Server 2005/ 2008 I have kept a CASE condition for a SQL query
SQL Server 2005 SP3 on Windows Server 2008 R2. I ran a server side
SQL Server 2000 Standard, Windows 2003 My coworker removed 'BUILTIN\Administrators' group from SQL Server
SQL Server profiler is great for profiling SQL Server performance for web apps. However,
SQL Server 2005 query is as follows...... SELECT ClgId FROM IdMaker_DB WHERE Course =
SQL Server 2008: Sorry for the possibly non-informative title but I'm not sure quite

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.