UFN_SMARTQUERY_NAMEINUSE
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@NAME | nvarchar(60) | IN |
Definition
Copy
create function dbo.[UFN_SMARTQUERY_NAMEINUSE]
(
@NAME nvarchar(60)
)
returns bit
with execute as caller
as begin
declare @INUSE bit = 0;
if exists (select top 1 1 from dbo.[SMARTQUERYCATALOG] where [NAME] = @NAME)
set @INUSE = 1;
return @INUSE;
end