Home Forums SQL Server 2014 Development - SQL Server 2014 Can you count columns from sys.partition table, if not is select count(1) the fastest way ? RE: Can you count columns from sys.partition table, if not is select count(1) the fastest way ?

  • Yes, you can use sys.partitions if you want unfiltered row count. If you want to query the table directly, then SELECT COUNT(*) ...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass