1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| DECLARE @index int
DECLARE @TOTAL int
SET @TOTAL=217
SET @index=1
WHILE @index <= @TOTAL
BEGIN
DECLARE @value float
SET @value=(SELECT RainfallZoneID FROM temp_RainfallZone WHERE Slot=@Index)
CREATE TABLE #Data (A float , B int, C float, D float, E float, F float , G float, H float)
INSERT #Data exec GetProfile @value,30,24,5,711,5
INSERT INTO [IrelandPluvial].[dbo].[tblTestRainfallZones]
([RainfallZoneID]
,[Time]
,[RainfallIntensity])
SELECT @value,B,H
FROM #Data
DROP TABLE #Data
SET @index=@index+1
END |
Partager