operatorPriorities log {ts '2024-09-20 18:02:41'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:02:48'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:02:55'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:05'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:13'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:22'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:27'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:35'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO {ts '2024-09-20 18:03:48'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with priorities as ( select cp.priorityId, cp.priorityCode, cp.profileRequirementConfig, cp.callFreqThresholdWks from tbl_OPR_CLientPriorities cp with (nolock) where ownerId = @ownerId and ownerType = @ownerType and active = 'Y' ) , priorities_preData as ( select * from priorities where [priorityCode] = '?' ) , priorities_data as ( select * , count(*) over() as fseRowCount from priorities_preData ) , priorities_return as ( select * from priorities_data where 1 = 1 order by priorityCode offset 0 rows fetch next 10000000 rows only ) , priorities_result as ( select ( select count(*) from priorities_data ) as totalCount, ( select * from priorities_return for json auto, include_null_values ) as data ) select * from priorities_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 376412 -- CHO