﻿CREATE PROCEDURE [session].[CreateSession]
	@Name [session].[SessionName],
	@Player1Name [user].[UserName]
AS
BEGIN
	SET NOCOUNT ON

	INSERT INTO [session].[Session] ([Name], Player1Id)
	SELECT @Name, Id
	FROM [user].[User]
	WHERE [Name] = @Player1Name
END