     ('type1',    '\"data1\"',    '\"meta1\"'),
     ('type2',    '\"data2\"',    '\"meta2\"'),
     ('type3',    '\"data3\"',    '\"meta3\"'),
-    ('type4',    '\"data4\"',    '\"meta4\"')
+    ('type4',    '\"data4\"',    '\"meta4\"');
  
 -- Actual SQL statement of interest
 SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
-BEGIN TRANSACTION CreateStream
+BEGIN TRANSACTION CreateStream;
     DECLARE @count AS INT;
     DECLARE @streamIdInternal AS INT;
     BEGIN

        SELECT @streamIdInternal = SCOPE_IDENTITY();

        INSERT INTO dbo.Events (StreamIdInternal, StreamRevision, Id, Created, [Type], JsonData, JsonMetadata)
            SELECT  @streamIdInternal,
                    StreamRevision,
                    Id,
                    Created,
                    [Type],
                    JsonData,
                    JsonMetadata
                FROM @newEvents
 
    END
    SELECT @streamIdInternal
COMMIT TRANSACTION CreateStream


SET @streamId = 'stream-2'
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
BEGIN TRANSACTION CreateStream
    BEGIN
        INSERT INTO dbo.Streams (Id, IdOriginal) VALUES (@streamId, @streamId);
        SELECT @streamIdInternal = SCOPE_IDENTITY();

        INSERT INTO dbo.Events (StreamIdInternal, StreamRevision, Id, Created, [Type], JsonData, JsonMetadata)
            SELECT  @streamIdInternal,
                    StreamRevision,
                    Id,
                    Created,
                    [Type],
                    JsonData,
                    JsonMetadata
                FROM @newEvents
 
    END
    SELECT @streamIdInternal
COMMIT TRANSACTION CreateStream
 
SELECT * FROM dbo.Streams
SELECT * FROM dbo.Events
DROP TABLE dbo.Events;
DROP TABLE dbo.Streams;
DROP TYPE dbo.NewStreamEvents;

CREATE TABLE dbo.Streams(
    Id                  CHAR(40)                                NOT NULL,
