Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    7

    Unanswered: Rows Affected By Delete

    Hello all,

    Is there someway to tell how many rows were affected by a delete statement? A variable perhaps?

    Any help would be appreciated!

    Brian

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    @@ROWCOUNT stores the number of rows affected by the last statement. It is continually changing, so you may need to store the value in another variable immediately after your statement is executed.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •