16
Reply

What is the use of @@ROWCOUNT statement?

Rahul Chavan

Rahul Chavan

Apr 07, 2016
642
0

    Using @@ROWCOUNT statement you can get the number of rows/ records affected by query execution. It is best practice that whenever you are doing update or delete on table data and if you know affected row count then you should validate that count against @@ROWCOUNT if it is not matching then transaction should be rolled back.

    Rahul Chavan
    April 07, 2016
    1

    To get the number of rows affected by the latest query that is executed. The @@ sign indicates that it is the system function.

    Mukesh Sagar
    November 17, 2017
    0

    The @@ROW COUNT variable returns the number of rows read by the last executed statement. If any statement does not return any rows, then value of @@ROWCOUNT variable is set to zero.

    Jothish Kumar
    September 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    @@rowcount is sql function that returns how many rows affected by query execution. we can also use it when insert data into two tables in single procedures based on first table data insertion.

    Awadhesh Jha
    August 14, 2017
    0

    we find the how many rows in table

    Venka Reddy
    June 07, 2017
    0