Scalar-valued Functions [dbo].[byte]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@numsql_variant8016
SQL Script
/****** Object:  User Defined Function dbo.byte    Script Date: 12/1/2005 11:50:33 PM ******/

CREATE FUNCTION [dbo].[byte](@num sql_variant)  
RETURNS varbinary(8000) AS  
BEGIN
    RETURN CONVERT(varbinary(8000), @num)
END
GO
Uses