Skip to content

Commit 842a418

Browse files
committed
fixed update procedure
1 parent 459c006 commit 842a418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SQL/WideWorldImportersUpdates.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ SET NOCOUNT ON;
105105
DECLARE @CustomerId INT = NEXT VALUE FOR Sequences.CustomerID;
106106
WITH [source] AS
107107
(
108-
SELECT * FROM OPENJSON(@Json) WITH (
108+
SELECT @Id AS CustomerID, * FROM OPENJSON(@Json) WITH (
109109
[CustomerName] NVARCHAR(100),
110110
[PhoneNumber] NVARCHAR(20),
111111
[FaxNumber] NVARCHAR(20),

0 commit comments

Comments
 (0)