     [Type]              NVARCHAR(128)                           NOT NULL,
     JsonData            NVARCHAR(max)                           NULL    ,
     JsonMetadata        NVARCHAR(max)                           NULL
-)
+);
 GO
  
 -- ExpectedVersion.NoStream
 
-DECLARE @newEvents dbo.NewStreamEvents
+DECLARE @newEvents dbo.NewStreamEvents;
 
 DECLARE @streamId CHAR(40) = 'stream-1';
  

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

DROP TABLE dbo.Events;
DROP TABLE dbo.Streams;
DROP TYPE dbo.NewStreamEvents;

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