You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(schema): use COUNT(*) for EstimateRowCount to drop VIEW DATABASE PERFORMANCE STATE (#98)
Replace sys.dm_db_partition_stats in SourceTableChangeTrackingInfoQuery with a
batch that inserts change-tracking metadata into #Base, then for each table
runs COUNT(*) with NOLOCK via dynamic SQL and stores result in #Counts. Join
#Base and #Counts for the final result. Tables without SELECT permission get
NULL EstimateRowCount (TRY/CATCH). Exact row count, no VIEW DATABASE
PERFORMANCE STATE; may be slower on very large tables.
0 commit comments