• danielfountain (10/15/2013)


    According to MS sys.partitions.rows "Indicates the approximate number of rows in this partition"

    http://technet.microsoft.com/en-us/library/ms175012.aspx

    Hi,

    Microsoft recommends to use the new dynamic views instead of some deprecated for future use

    The same result can be obtained by using this dynamic view as well

    select i.rowcnt from sys.sysindexes i where i.id = OBJECT_ID('[schema].[TableName]')

    and i.indid = 1

    I often use sys.partitions and it always gives out the same result as count(1). If the maintenance of the indexes is regularly done than that info is exact. However, a good remark of you, thanks.

    Regards,

    IgorMi

    Igor Micev,My blog: www.igormicev.com