UFN_SMARTQUERYINSTANCE_EXISTS
Return
| Return Type |
|---|
| bit |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_SMARTQUERYINSTANCE_EXISTS
(
@ID uniqueidentifier
)
returns bit
with execute as caller
as begin
declare @SQIEXISTS bit = 0
if exists(select 1 from dbo.SMARTQUERYINSTANCE where ID = @ID)
set @SQIEXISTS = 1
return @SQIEXISTS
end