Notifications
Clear all
May 11, 2019 9:50 am
Hello,
You should try remove and recreate the GetExchangeAccounts stored procedure in MsSQL.
CREATE PROCEDURE [dbo].[GetExchangeAccounts]
(
@ItemID int,
@AccountType int
)
AS
SELECT
E.AccountID,
E.ItemID,
E.AccountType,
E.AccountName,
E.DisplayName,
E.PrimaryEmailAddress,
E.MailEnabledPublicFolder,
E.MailboxPlanId,
P.MailboxPlan,
E.SubscriberNumber,
E.UserPrincipalName
FROM
ExchangeAccounts AS E
LEFT OUTER JOIN ExchangeMailboxPlans AS P ON E.MailboxPlanId = P.MailboxPlanId
WHERE
E.ItemID = @ItemID AND
(E.AccountType = @AccountType OR @AccountType IS NULL)
ORDER BY DisplayName
RETURNGO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Thanks,
Trevor
May 11, 2019 6:04 pm
Hi Trevor,
That worked, thanks ever so much.
Ian
Page 2 / 2
Prev