Skip to content

Commit 97c8e72

Browse files
authored
Update InsertMeterMeasurementHistory.sql
1 parent bd25b5a commit 97c8e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/applications/iot-smart-grid/Db/dbo/Stored Procedures/InsertMeterMeasurementHistory.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ AS
44
BEGIN
55
BEGIN TRAN
66
INSERT INTO dbo.MeterMeasurementHistory (MeterID, MeasurementInkWh, PostalCode, MeasurementDate)
7-
SELECT TOP 250000 MeterID, MeasurementInkWh, PostalCode, MeasurementDate FROM dbo.MeterMeasurement WITH (SNAPSHOT)
7+
SELECT MeterID, MeasurementInkWh, PostalCode, MeasurementDate FROM dbo.MeterMeasurement WITH (SNAPSHOT)
88
WHERE MeterID = @MeterID
99

10-
DELETE TOP (250000) FROM dbo.MeterMeasurement WITH (SNAPSHOT) WHERE MeterID = @MeterID
10+
DELETE FROM dbo.MeterMeasurement WITH (SNAPSHOT) WHERE MeterID = @MeterID
1111
COMMIT
1212
END;

0 commit comments

Comments
 (0)