operatorPriorities log {ts '2025-06-26 09:14:42'} 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 -- 229 -- MSC {ts '2025-06-26 09:25:01'} 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 -- 229 -- MSC {ts '2025-06-26 09:25: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_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 -- 229 -- MSC {ts '2025-06-26 09:42:58'} 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 -- 229 -- MSC {ts '2025-06-26 09:44:04'} 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 -- 229 -- MSC {ts '2025-06-26 09:44:06'} 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 -- 229 -- MSC {ts '2025-06-26 09:44: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 -- 229 -- MSC {ts '2025-06-26 09:44:54'} 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 -- 229 -- MSC {ts '2025-06-26 09:45:04'} 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 -- 229 -- MSC {ts '2025-06-26 10:01:59'} 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 -- 229 -- MSC {ts '2025-06-26 10:05:03'} 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 -- 229 -- MSC {ts '2025-06-26 11:28:40'} 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 -- 229 -- MSC {ts '2025-06-26 12:07:28'} 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 -- 229 -- MSC {ts '2025-06-26 13:29: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_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 -- 229 -- MSC {ts '2025-06-26 13:30:34'} 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 -- 229 -- MSC {ts '2025-06-26 13:30:43'} 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 -- 229 -- MSC {ts '2025-06-26 13:43:50'} 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 -- 229 -- MSC {ts '2025-06-26 13:43:52'} 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 -- 229 -- MSC {ts '2025-06-26 13:44:09'} 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 -- 229 -- MSC {ts '2025-06-26 13:44:12'} 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 -- 229 -- MSC {ts '2025-06-26 13:44:24'} 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 -- 229 -- MSC {ts '2025-06-26 13:44:26'} 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 -- 229 -- MSC {ts '2025-06-26 13:44:42'} 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 -- 229 -- MSC {ts '2025-06-26 13:44: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 -- 229 -- MSC {ts '2025-06-26 13:44:53'} 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 -- 229 -- MSC {ts '2025-06-26 13:44: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_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 -- 229 -- MSC {ts '2025-06-26 13:45:30'} 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 -- 229 -- MSC {ts '2025-06-26 13:45: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 -- 229 -- MSC {ts '2025-06-26 13:45:59'} 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 -- 229 -- MSC {ts '2025-06-26 13:46: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_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 -- 229 -- MSC {ts '2025-06-26 13:46: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_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 -- 229 -- MSC {ts '2025-06-26 13:46:24'} 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 -- 229 -- MSC {ts '2025-06-26 13:46: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 -- 229 -- MSC {ts '2025-06-26 13:46:46'} 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 -- 229 -- MSC {ts '2025-06-26 13:47:52'} 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 -- 229 -- MSC {ts '2025-06-26 13:47:54'} 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 -- 229 -- MSC {ts '2025-06-26 13:48: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_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 -- 229 -- MSC {ts '2025-06-26 13:48:15'} 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 -- 229 -- MSC {ts '2025-06-26 13:48: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_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 -- 229 -- MSC {ts '2025-06-26 13:48:37'} 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 -- 229 -- MSC {ts '2025-06-26 13:48:50'} 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 -- 229 -- MSC {ts '2025-06-26 13:48:51'} 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 -- 229 -- MSC {ts '2025-06-26 13:49:16'} 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 -- 229 -- MSC {ts '2025-06-26 13:49:17'} 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 -- 229 -- MSC {ts '2025-06-26 13:49:42'} 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 -- 229 -- MSC {ts '2025-06-26 13:49:43'} 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 -- 229 -- MSC {ts '2025-06-26 13:51:50'} 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 -- 229 -- MSC {ts '2025-06-26 13:51: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_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 -- 229 -- MSC {ts '2025-06-26 13:52:18'} 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 -- 229 -- MSC {ts '2025-06-26 13:52:21'} 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 -- 229 -- MSC {ts '2025-06-26 13:52:43'} 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 -- 229 -- MSC {ts '2025-06-26 13:52: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 -- 229 -- MSC