Files
DP44/DataPRO_sql/dbo.sp_SensorsDigitalInGet.StoredProcedure.sql
2026-04-17 14:55:32 -04:00

71 lines
1.6 KiB
Transact-SQL
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
USE [DataPRO]
GO
/****** Object: StoredProcedure [dbo].[sp_SensorsDigitalInGet] Script Date: 6/19/2018 12:24:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_SensorsDigitalInGet]
@SerialNumber nvarchar(50) = null,
@Id nvarchar(50) = null
AS
BEGIN
SET NOCOUNT ON;
SELECT [SerialNumber] as 'SettingName'
,[SettingMode]
,[ScaleMultiplier]
,[LastModified]
,[LastModifiedBy]
,[eId]
,[UserValue1]
,[UserValue2]
,[UserValue3]
,[UserTags]
,[MeasurementUnit]
,[FilterClass]
FROM [dbo].[SensorsDigitalIn] where (@SerialNumber is null or SerialNumber = @SerialNumber ) AND (@Id is null or eId = @Id)
END