This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
CREATE PROCEDURE [dbo].[sp_ChannelSettingsGet_93]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName)
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id)
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings]
END
END

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_92]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName<>'StreamOutTMATSIntervalMs')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName<>'StreamOutTMATSIntervalMs')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName<>'StreamOutTMATSIntervalMs')
END
END

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName <> 'ACCouplingEnabled' AND SettingName <>'StreamOutTMATSIntervalMs')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <> 'ACCouplingEnabled' AND SettingName <>'StreamOutTMATSIntervalMs')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <> 'ACCouplingEnabled' AND SettingName <>'StreamOutTMATSIntervalMs')
END
END

View File

@@ -0,0 +1,6 @@
INSERT INTO [dbo].[ChannelSettings]
([SettingName]
,[DefaultValue])
VALUES
('StreamOutTMATSIntervalMs'
,'1000')

View File

@@ -0,0 +1,8 @@
CREATE PROCEDURE [dbo].[sp_GroupChannelSettingsGet_93]
@ChannelId BIGINT
AS
BEGIN
SET NOCOUNT ON;
SELECT SettingId, SettingValue FROM [dbo].[GroupChannelSettings] WHERE [ChannelId]=@ChannelId
END

View File

@@ -0,0 +1,19 @@
CREATE PROCEDURE [dbo].[sp_GroupChannelSettingsInsert_93]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
INSERT INTO [dbo].[GroupChannelSettings] ([ChannelId],[SettingId],[SettingValue]) VALUES (@ChannelId, @SettingId, @SettingValue)
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,29 @@
CREATE PROCEDURE [dbo].[sp_GroupChannelSettingsUpdateInsert_93]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
if(exists(select ChannelId from [dbo].[GroupChannelSettings] where ChannelId = @ChannelId and SettingId = @SettingId))
begin
exec dbo.sp_GroupChannelSettingsUpdate_93
@ChannelId
,@SettingId
,@SettingValue
,@errorNumber output, @errorMessage output
end
else
begin
exec dbo.sp_GroupChannelSettingsInsert_93
@ChannelId
,@SettingId
,@SettingValue
,@errorNumber output, @errorMessage output
end
END

View File

@@ -0,0 +1,19 @@
CREATE PROCEDURE [dbo].[sp_GroupChannelSettingsUpdate_93]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
UPDATE [dbo].[GroupChannelSettings] SET SettingValue = @SettingValue WHERE ChannelId = @ChannelId and SettingId = @SettingId
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,8 @@
ALTER PROCEDURE [dbo].[sp_GroupChannelSettingsGet]
@ChannelId BIGINT
AS
BEGIN
SET NOCOUNT ON;
SELECT SettingId, CASE WHEN SettingValue='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE SettingValue END as SettingValue FROM [dbo].[GroupChannelSettings] WHERE [ChannelId]=@ChannelId
END

View File

@@ -0,0 +1,19 @@
ALTER PROCEDURE [dbo].[sp_GroupChannelSettingsInsert]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
INSERT INTO [dbo].[GroupChannelSettings] ([ChannelId],[SettingId],[SettingValue]) VALUES (@ChannelId, @SettingId, CASE WHEN @SettingValue = 'UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE @SettingValue END)
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,19 @@
ALTER PROCEDURE [dbo].[sp_GroupChannelSettingsUpdate]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
UPDATE [dbo].[GroupChannelSettings] SET SettingValue = (CASE WHEN @SettingValue = 'UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE @SettingValue END) WHERE ChannelId = @ChannelId and SettingId = @SettingId
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,70 @@
ALTER PROCEDURE [dbo].[sp_SettingsUpdateInsert]
@PropertyId nvarchar(255)
,@PropertyType int
,@PropertyValue nvarchar(255)
,@UserId nvarchar(255) = null
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
if(@UserId is null)
begin
RAISERROR(15600,-1,-1, '[sp_SettingsUpdateInsert]') /* Error 1560 - An invalid parameter or option was specified for procedure*/
end
else
begin
if(exists(select * from [dbo].[Settings] where UserId = @UserId and PropertyId = @PropertyId))
begin
set @new_id = 0
exec [dbo].[sp_SettingsUpdate] @PropertyId
,@PropertyValue
,@UserId
,@errorNumber output
,@errorMessage output
end
else
begin
exec [dbo].[sp_SettingsInsert] @PropertyId
,@PropertyType
,@PropertyValue
,@UserId
,@new_id output
,@errorNumber output
,@errorMessage output
end
--36831 The ImportCreateDynamicGroups setting has replaced the CSVImportCreateDynamicGroups setting, so
--if a pre-Version 93 client sets the old setting, the new one should be set also, so that Version 93
--clients will have the value reflected in their "Use dynamic groups with CSV, EQX import" checkbox
--(Version 93 clients will set both settings when the new one is set).
--This ALTER script was added to the following migrations, since it wasn't added when the new setting first went in:
--Versions 92, 93, 94, and 95. It also was not added to the starting database for 4.1, 4.2, and 4.3.
if(@PropertyId = 'CSVImportCreateDynamicGroups')
begin
if(exists(select * from [dbo].[Settings] where UserId = @UserId and PropertyId = 'ImportCreateDynamicGroups'))
begin
exec [dbo].[sp_SettingsUpdate] 'ImportCreateDynamicGroups'
,@PropertyValue
,@UserId
,@errorNumber output
,@errorMessage output
end
else
begin
exec [dbo].[sp_SettingsInsert] 'ImportCreateDynamicGroups'
,@PropertyType
,@PropertyValue
,@UserId
,@new_id output
,@errorNumber output
,@errorMessage output
end
end
end
END

View File

@@ -0,0 +1,24 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamOutputGet_93]
@Id INT = null,
@SerialNumber NVARCHAR (50) = null
AS
BEGIN
SET NOCOUNT ON;
IF( @Id IS NULL)
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput'
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.SerialNumber=@SerialNumber
END
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.id=@Id
END
END

View File

@@ -0,0 +1,43 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamOutputInsert_93]
@SerialNumber NVARCHAR (50),
@StreamProfile NVARCHAR (50),
@UDPAddress NVARCHAR (50),
@TimeChannelId INT,
@DataChannelId INT,
@TmNSConfig NVARCHAR (50),
@IRIGTimeDataPacketIntervalMs INT,
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@TMATSIntervalMs INT,
@new_id INT OUTPUT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = space(0)
DECLARE @SensorId AS INT
DECLARE @SensorType AS TINYINT
SELECT @SensorType = [TypeId] FROM [dbo].[SensorsType] WHERE [SensorType]='StreamOutput'
INSERT INTO [dbo].[Sensors] ([SensorType], [SerialNumber]) VALUES (@SensorType, @SerialNumber)
SELECT @SensorId = SCOPE_IDENTITY()
INSERT INTO [dbo].[SensorsStreamOutput] ([SensorId], [StreamProfile], [UDPAddress], [TimeChannelId], [DataChannelId], [TmNSConfig], [IRIGTimeDataPacketIntervalMs], [LastModified], [LastModifiedBy], [UserTags], [Broken], [DoNotUse],[TMATS_IntervalMS]) VALUES (@SensorId, @StreamProfile, @UDPAddress, @TimeChannelId, @DataChannelId, @TmNSConfig, @IRIGTimeDataPacketIntervalMs, @LastModified, @LastModifiedBy, @UserTags, @Broken, @DoNotUse, @TMATSIntervalMs)
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
SET @new_id = @SensorId
END

View File

@@ -0,0 +1,50 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamOutputUpdateInsert_93]
@Id INT=NULL,
@SerialNumber NVARCHAR (255),
@StreamProfile NVARCHAR (50),
@UDPAddress NVARCHAR (50),
@TimeChannelId INT,
@DataChannelId INT,
@TmNSConfig NVARCHAR (50),
@IRIGTimeDataPacketIntervalMs INT,
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@TMATSIntervalMs INT,
@new_id INT OUTPUT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET NOCOUNT ON
SET @errorNumber = 0
SET @errorMessage = ''
DECLARE @SensorType AS TINYINT
DECLARE @SensorId AS INT
SELECT @SensorType = [TypeId] FROM [dbo].[SensorsType] WHERE [SensorType]='StreamOutput'
SELECT @SensorId = A.[Id] from [dbo].[Sensors] AS A INNER JOIN [dbo].SensorsType AS B ON A.SensorType=B.TypeId WHERE B.TypeId=@SensorType AND A.SerialNumber=@SerialNumber
IF( @SensorId IS NULL)
BEGIN
INSERT INTO [dbo].[Sensors] ([SensorType], [SerialNumber]) VALUES (@SensorType, @SerialNumber)
SELECT @SensorId = SCOPE_IDENTITY()
SET @new_id = @SensorId
INSERT INTO [dbo].[SensorsStreamOutput] ([SensorId], [StreamProfile], [UDPAddress], [TimeChannelId], [DataChannelId], [TmNSConfig], [IRIGTimeDataPacketIntervalMs], [LastModified], [LastModifiedBy], [UserTags], [Broken], [DoNotUse], [TMATS_IntervalMS]) VALUES (@SensorId, @StreamProfile, @UDPAddress, @TimeChannelId, @DataChannelId, @TmNSConfig, @IRIGTimeDataPacketIntervalMs, @LastModified, @LastModifiedBy, @UserTags, @Broken, @DoNotUse,@TMATSIntervalMs)
END
ELSE
BEGIN
SET @new_id = @SensorId
UPDATE [dbo].SensorsStreamOutput SET [StreamProfile]=@StreamProfile, [UDPAddress]=@UDPAddress, [TimeChannelId]=@TimeChannelId, [DataChannelId]=@DataChannelId, [TmNSConfig]=@TmNSConfig, [IRIGTimeDataPacketIntervalMs]=@IRIGTimeDataPacketIntervalMs, [LastModified]=@LastModified, [LastModifiedBy]=@LastModifiedBy, [UserTags]=@UserTags, [Broken]=@Broken, [DoNotUse]=@DoNotUse, [TMATS_IntervalMS]=@TMATSIntervalMs WHERE [SensorId] = @SensorId
END
END
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END

View File

@@ -0,0 +1,31 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamOutputUpdate_93]
@Id INT,
@StreamProfile NVARCHAR (50),
@UDPAddress NVARCHAR (50),
@TimeChannelId INT,
@DataChannelId INT,
@TmNSConfig NVARCHAR (50),
@IRIGTimeDataPacketIntervalMs INT,
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@TMATSIntervalMs INT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = ''
UPDATE [dbo].SensorsStreamOutput SET [StreamProfile]=@StreamProfile, [UDPAddress]=@UDPAddress, [TimeChannelId]=@TimeChannelId, [DataChannelId]=@DataChannelId, [TmNSConfig]=@TmNSConfig, [IRIGTimeDataPacketIntervalMs]=@IRIGTimeDataPacketIntervalMs, [LastModified]=@LastModified, [LastModifiedBy]=@LastModifiedBy, [UserTags]=@UserTags, [Broken]=@Broken, [DoNotUse]=@DoNotUse, [TMATS_IntervalMS]=@TMATSIntervalMs WHERE [SensorId] = @Id
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,23 @@
ALTER PROCEDURE [dbo].[sp_SensorsStreamOutputGet]
@Id INT = null,
@SerialNumber NVARCHAR (50) = null
AS
BEGIN
SET NOCOUNT ON;
IF( @Id IS NULL)
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput'
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.SerialNumber=@SerialNumber
END
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.id=@Id
END
END

View File

@@ -0,0 +1,42 @@
ALTER PROCEDURE [dbo].[sp_SensorsStreamOutputInsert]
@SerialNumber NVARCHAR (50),
@StreamProfile NVARCHAR (50),
@UDPAddress NVARCHAR (50),
@TimeChannelId INT,
@DataChannelId INT,
@TmNSConfig NVARCHAR (50),
@IRIGTimeDataPacketIntervalMs INT,
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@new_id INT OUTPUT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = space(0)
DECLARE @SensorId AS INT
DECLARE @SensorType AS TINYINT
SELECT @SensorType = [TypeId] FROM [dbo].[SensorsType] WHERE [SensorType]='StreamOutput'
INSERT INTO [dbo].[Sensors] ([SensorType], [SerialNumber]) VALUES (@SensorType, @SerialNumber)
SELECT @SensorId = SCOPE_IDENTITY()
INSERT INTO [dbo].[SensorsStreamOutput] ([SensorId], [StreamProfile], [UDPAddress], [TimeChannelId], [DataChannelId], [TmNSConfig], [IRIGTimeDataPacketIntervalMs], [LastModified], [LastModifiedBy], [UserTags], [Broken], [DoNotUse]) VALUES (@SensorId, CASE WHEN @StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE @StreamProfile END, @UDPAddress, @TimeChannelId, @DataChannelId, @TmNSConfig, @IRIGTimeDataPacketIntervalMs, @LastModified, @LastModifiedBy, @UserTags, @Broken, @DoNotUse)
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
SET @new_id = @SensorId
END

View File

@@ -0,0 +1,30 @@
ALTER PROCEDURE [dbo].[sp_SensorsStreamOutputUpdate]
@Id INT,
@StreamProfile NVARCHAR (50),
@UDPAddress NVARCHAR (50),
@TimeChannelId INT,
@DataChannelId INT,
@TmNSConfig NVARCHAR (50),
@IRIGTimeDataPacketIntervalMs INT,
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = ''
UPDATE [dbo].SensorsStreamOutput SET [StreamProfile]=(CASE WHEN @StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE @StreamProfile END), [UDPAddress]=@UDPAddress, [TimeChannelId]=@TimeChannelId, [DataChannelId]=@DataChannelId, [TmNSConfig]=@TmNSConfig, [IRIGTimeDataPacketIntervalMs]=@IRIGTimeDataPacketIntervalMs, [LastModified]=@LastModified, [LastModifiedBy]=@LastModifiedBy, [UserTags]=@UserTags, [Broken]=@Broken, [DoNotUse]=@DoNotUse WHERE [SensorId] = @Id
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1 @@
ALTER TABLE [dbo].[SensorsStreamOutput] ADD TMATS_IntervalMS INT NULL;

View File

@@ -0,0 +1,12 @@
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputUpdateInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputUpdate', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_ChannelSettingsGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsUpdate', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsUpdateInsert', 93)