﻿
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date, ,>
-- Description:	<Description, ,>
-- =============================================
CREATE FUNCTION [dbo].[fds__getCompanyName]
(
	@companyid bigint
)
RETURNS nvarchar(1000)
AS
BEGIN
	DECLARE @name nvarchar(255);

	SELECT TOP(1) @name = cy.[name] FROM [dbo].[mfr__companies] as cy WHERE cy.id = @companyid;

	RETURN @name;

END