UPDATE

  • Hi,

    Is there a way that we can update only the top 50 rows and leave the remaining or something. I want to use this in debugging, because my update does for million rows and i just have to wait 4 hrs to complete the whole update statement

    thank you for your help

    Hari

  • from BOL:

    SET ROWCOUNT

    Causes Microsoft® SQL Server™ to stop processing the query after the specified number of rows are returned.

    Syntax

    SET ROWCOUNT { number | @number_var }

    Arguments

    number | @number_var

    Is the number (an integer) of rows to be processed before stopping the given query.

    There is no "i" in team, but idiot has two.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply