members log {ts '2025-01-07 14:58:00'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 14:58:00'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 14:58:19'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 14:58:20'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 14:58: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 fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 14:58: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 fspro_userId = ? ) , data_mappedData as ( select * from data ) , data_preData as ( select * from data_mappedData with (nolock) where [fspro_userId] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 15:00:13'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132 {ts '2025-01-07 15:00:13'} 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] = 4821132 ) , 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 -- 709 -- MFR -- 4821132