Stored Procedures [dbo].[MssWebGetRecentlyUsedEmailAddresses]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inSysUserIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE PROCEDURE [dbo].[MssWebGetRecentlyUsedEmailAddresses] @inSysUserId INT
AS
BEGIN
    SET NOCOUNT ON;
    SELECT TOP 100
           RecipientName,
           EmailAddress
    FROM RecentlyUsedEmailAddress
    WHERE SenderSysUserFId = @inSysUserId
    ORDER BY LastUsedOn DESC;
END;
GO
GRANT EXECUTE ON  [dbo].[MssWebGetRecentlyUsedEmailAddresses] TO [MssExec]
GO
Uses