classifications log {ts '2024-12-16 15:06:37'} 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 -- 235 -- BRO {ts '2024-12-16 15:06:57'} 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 -- 235 -- BRO {ts '2024-12-16 15:07:06'} 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 -- 235 -- BRO