init
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE dbo.SensorsAnalog
|
||||
ADD FirstUseDate datetime NULL;
|
||||
|
||||
ALTER TABLE dbo.SensorsAnalog
|
||||
ADD LatestCalibrationId int NULL;
|
||||
@@ -0,0 +1,22 @@
|
||||
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_95]
|
||||
@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 <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
|
||||
END
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
|
||||
END
|
||||
END
|
||||
@@ -0,0 +1,24 @@
|
||||
CREATE PROCEDURE [dbo].[sp_DefaultPropertiesUpdateByName]
|
||||
-- Add the parameters for the stored procedure here
|
||||
@PropertyName nvarchar(255),
|
||||
@DefaultValue nvarchar(255),
|
||||
@errorNumber int output,
|
||||
@errorMessage nvarchar(255) output
|
||||
AS
|
||||
BEGIN
|
||||
-- Insert statements for procedure here
|
||||
set @errorNumber = 0
|
||||
set @errorMessage = space(0)
|
||||
|
||||
SET NOCOUNT ON;
|
||||
BEGIN
|
||||
update [dbo].[DefaultProperties]
|
||||
set [DefaultValue] = @DefaultValue
|
||||
where PropertyName = @PropertyName
|
||||
END
|
||||
IF(@@error!=0)
|
||||
BEGIN
|
||||
SET @errorNumber = error_number()
|
||||
SET @errorMessage = error_message()
|
||||
END
|
||||
END;
|
||||
Reference in New Issue
Block a user