Home Forums SQL Server 2008 T-SQL (SS2K8) How to use values keyword as parameter of a function RE: How to use values keyword as parameter of a function

  • Seems legit, thanks 🙂 But the syntax, man... I'll probably just write my own set of methods...

    create function EqualI2(@i1 int, @i2 int)...

    create function EqualI3(@i1 int, @i2 int, @i3 int)...

    ...

    create function EqualS2(@s1 varchar(max), @s2 varchar(max)...

    create function EqualS3(@s1 varchar(max), @s2 varchar(max), @s3 varchar(max))...

    ...

    create function EqualB2(@b1 bit, @b2 bit)...

    create function EqualB3(@b1 bit, @b2 bit, @b3 bit,...)...

    ...