classifications log {ts '2024-10-10 10:42:27'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:20: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:30:22'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:30: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:31: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:32: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:33: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:35: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:35: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:35: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:37: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:39:50'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:40:09'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:40:26'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:42: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:47:30'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:49:17'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:51: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:52: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:52:11'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:53: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:54: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 11:56: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 12:43: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 12:43:55'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 12:44: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 12:44: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 12:44: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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR {ts '2024-10-10 14:00:00'} 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_preData as ( select * from classifications where ( 1 = 1 ) ) , classifications_data as ( select * , count(*) over() as fseRowCount 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 -- 164 -- MFR