Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    26

    Unanswered: Checking is updation successfull

    I am updating a table in store procedure. I want to check whether the statement has successfully updated the table or not. i know in mySql i can handle it using ROW_COUNT() function. but how can i do it in MS-SQL?

  2. #2
    Join Date
    Jan 2006
    Location
    USA
    Posts
    115
    You can use @@ROWCOUNT for getting number of rows affected by the last statement.
    Rajesh Patel

    Everybody says - mistake is the first step of success, but it's not true. The correction of the mistake is the first step of success.

  3. #3
    Join Date
    Jul 2006
    Posts
    26
    Hey, thanks man... you saved my time on Google

Posting Permissions

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