members log {ts '2025-06-25 08:03:26'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:31'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( ( ( [fullName] like '%neil%' ) ) ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:35'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:35'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( [fspro_userId] = '64465' ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:45'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:03:47'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:50'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( ( ( [fullName] like '%neil%' ) ) ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:52'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:03:52'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( [fspro_userId] = '64465' ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:04:17'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:04:17'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:08:53'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:08:53'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:08:57'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:08:57'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and loginEnabled = 1 ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where ( 1 = 1 ) ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 20 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO {ts '2025-06-25 08:15:10'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:15:10'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 2964779 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 2964779 {ts '2025-06-25 08:15:10'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 2964779 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 2964779 {ts '2025-06-25 08:16:07'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 08:16:07'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 11:39:14'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 2842828 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 2842828 {ts '2025-06-25 11:39:14'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 64465 {ts '2025-06-25 11:39:14'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 242619 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 242619 {ts '2025-06-25 11:46:41'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 2842828 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 -- BRO -- 2842828 {ts '2025-06-25 11:46:41'} SQL {ts '2025-06-25 11:46:41'} SQL declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 64465 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- 387 declare @ownerId int = ?; declare @ownerType varchar(3) = ?; with data as ( select fspro_userId, firstName, lastName, email, title, staffMember, loginEnabled, firstName + ' ' + lastName as fullName from tbl_FSPro_members with (nolock) where ownerId = @ownerId and fsl_tablecode = @ownerType and nullif( orgId, 0 ) is null -- make sure we we don't get CRM contacts and nullif( email, '' ) is not null -- make sure we only get those with email address and fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 242619 ) , data_data as ( select * from data_preData ) , data_return as ( select * from data_data where 1 = 1 order by fullName offset 0 rows fetch next 10000000 rows only ) , data_result as ( select ( select count(*) from data_data ) as totalCount, ( select * from data_return for json auto, include_null_values ) as data ) select * from data_result for JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER -- BRO -- 64465 -- 387 -- BRO -- 242619