نقل قول: نحوه اجرای Paging در SQL
برای تعداد رکورد از این کوئری استفاده کنین. جداولی که تعداد رکوردا زیاده خیلی خوب عمل می کنه
select sum([rows]) from sys.partitions where object_id=object_id('TableName') and index_id in (0,1)
نقل قول: نحوه اجرای Paging در SQL
نقل قول:
نوشته شده توسط
hamid_hr
برای تعداد رکورد از این کوئری استفاده کنین. جداولی که تعداد رکوردا زیاده خیلی خوب عمل می کنه
select sum([rows]) from sys.partitions where object_id=object_id('TableName') and index_id in (0,1)
متشکرم. جالب بود.
اما Query روی یک View است که شرط های متفاوت و پیچیده ای هم در قسمت Where داره