mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
19 lines
406 B
Transact-SQL
19 lines
406 B
Transact-SQL
CREATE OR ALTER PROCEDURE [dbo].[Transaction_ReadByProviderId]
|
|
@ProviderId UNIQUEIDENTIFIER,
|
|
@Limit INT,
|
|
@StartAfter DATETIME2 = NULL
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
SELECT
|
|
TOP (@Limit) *
|
|
FROM
|
|
[dbo].[TransactionView]
|
|
WHERE
|
|
[ProviderId] = @ProviderId
|
|
AND (@StartAfter IS NULL OR [CreationDate] < @StartAfter)
|
|
ORDER BY
|
|
[CreationDate] DESC
|
|
END
|