mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 02:39:03 +00:00
21 lines
344 B
SQL
21 lines
344 B
SQL
CREATE OR ALTER PROCEDURE dbo.USP_AddUserCredentials
|
|
(
|
|
@Hash dbo.TblUserHashes READONLY
|
|
)
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON;
|
|
SET XACT_ABORT ON;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
INSERT INTO dbo.UserCredential
|
|
(UserAccountId, Hash)
|
|
SELECT
|
|
uah.UserAccountId,
|
|
uah.Hash
|
|
FROM @Hash AS uah;
|
|
|
|
COMMIT TRANSACTION;
|
|
END;
|