Files
DP44/DataPRO_sql/sp_SensorExist.sql
2026-04-17 14:55:32 -04:00

47 lines
1014 B
Transact-SQL
Raw 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_SensorExists] Script Date: 8/16/2017 9:11:29 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[sp_SensorExists]
@SensorSerialNumber nvarchar(50) = null
,@rv int = 0 output
AS
BEGIN
set @rv = 0
if(exists(select SerialNumber from v_SensorSerialNumber where SerialNumber=@SensorSerialNumber))
begin
set @rv = 1
end
END