UFN_COUNTYCODE_GETID
Returns the ID for the given table entry description.
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(100) | IN | The description used to look up the table entry ID. |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 12/17/2008 2:06:48 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_COUNTYCODE_GETID(@Description nvarchar(100))
RETURNS uniqueidentifier WITH EXECUTE AS CALLER
AS
begin
declare @r uniqueidentifier
select @r=ID FROM dbo.COUNTYCODE WHERE DESCRIPTION = @Description
return @r
end