• ron.mcdowell

    Right! Definitely is better not to use the cursor, it works good for me

    because my database was very small, but I'll never use it in this kind of

    situation anymore, with the sys.dm_db_partition_stats is really much faster.

    However, it has to be like Forum Newbie done on his example.

    On your example, the record count is resulted with a wrong value.