operatorPriorities log {ts '2025-02-25 14:32:44'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR {ts '2025-02-25 14:33:36'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR {ts '2025-02-25 14:33:39'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR {ts '2025-02-25 14:33:45'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR {ts '2025-02-25 14:34:08'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR {ts '2025-02-25 14:34:11'} 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_mappedData as ( select * from priorities ) , priorities_preData as ( select * from priorities_mappedData with (nolock) where [priorityCode] = '?' ) , priorities_data as ( select * 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 -- 606 -- MFR