classifications log {ts '2025-06-16 12:01:32'} 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 -- 1 -- MFR {ts '2025-06-16 12:01:40'} 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 -- 1 -- MFR {ts '2025-06-16 12:09:07'} 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 -- 1 -- MFR {ts '2025-06-16 13:50:02'} 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 -- 1 -- MFR {ts '2025-06-16 13:50: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 -- 1 -- MFR {ts '2025-06-16 13:50:52'} 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 -- 1 -- MFR {ts '2025-06-16 14:06:01'} 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 -- 1 -- MFR {ts '2025-06-16 14:16:23'} 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 -- 1 -- MFR {ts '2025-06-16 14:16:51'} 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 -- 1 -- MFR {ts '2025-06-16 14:18:47'} 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 -- 1 -- MFR {ts '2025-06-16 14:19:42'} 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 -- 1 -- MFR {ts '2025-06-16 14:19:48'} 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 -- 1 -- MFR {ts '2025-06-16 14:19:52'} 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 -- 1 -- MFR {ts '2025-06-16 14:19:58'} 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 -- 1 -- MFR {ts '2025-06-16 14:20:16'} 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 -- 1 -- MFR {ts '2025-06-16 14:20:21'} 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 -- 1 -- MFR {ts '2025-06-16 14:20:32'} 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 -- 1 -- MFR {ts '2025-06-16 14:21:21'} 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 -- 1 -- MFR {ts '2025-06-16 14:21:25'} 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 -- 1 -- MFR {ts '2025-06-16 14:21:56'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:03'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:14'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:18'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:31'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:33'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:36'} 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 -- 1 -- MFR {ts '2025-06-16 14:22:46'} 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 -- 1 -- MFR {ts '2025-06-16 14:23:14'} 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 -- 1 -- MFR {ts '2025-06-16 14:23:23'} 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 -- 1 -- MFR