classifications log {ts '2025-05-19 14:15:44'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with classifications as ( select c.classificationId, c.name, c.description, c.sortRank, c.abbreviation from tbl_OPR_Classifications c with (nolock) where ownerId = @ownerId and ownerType = @ownerType ) , classifications_mappedData as ( select * from classifications ) , classifications_preData as ( select * from classifications_mappedData with (nolock) where ( 1 = 1 ) ) , classifications_data as ( select * from classifications_preData ) , classifications_return as ( select * from classifications_data where 1 = 1 order by sortRank offset 0 rows fetch next 10000000 rows only ) , classifications_result as ( select ( select count(*) from classifications_data ) as totalCount, ( select * from classifications_return for json auto, include_null_values ) as data ) select * from classifications_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 2895 -- BRO {ts '2025-05-19 14:15:49'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with classifications as ( select c.classificationId, c.name, c.description, c.sortRank, c.abbreviation from tbl_OPR_Classifications c with (nolock) where ownerId = @ownerId and ownerType = @ownerType ) , classifications_mappedData as ( select * from classifications ) , classifications_preData as ( select * from classifications_mappedData with (nolock) where ( 1 = 1 ) ) , classifications_data as ( select * from classifications_preData ) , classifications_return as ( select * from classifications_data where 1 = 1 order by sortRank offset 0 rows fetch next 10000000 rows only ) , classifications_result as ( select ( select count(*) from classifications_data ) as totalCount, ( select * from classifications_return for json auto, include_null_values ) as data ) select * from classifications_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 2895 -- BRO