mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
21 lines
466 B
SQL
21 lines
466 B
SQL
CREATE OR ALTER PROCEDURE dbo.USP_CreateUserVerification
|
|
@UserAccountID uniqueidentifier,
|
|
@VerificationDateTime datetime = NULL
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
SET XACT_ABORT ON;
|
|
|
|
IF @VerificationDateTime IS NULL
|
|
SET @VerificationDateTime = GETDATE();
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
INSERT INTO dbo.UserVerification
|
|
(UserAccountId, VerificationDateTime)
|
|
VALUES
|
|
(@UserAccountID, @VerificationDateTime);
|
|
|
|
COMMIT TRANSACTION;
|
|
END
|