Is there anytype type for SQL Server

Like a parameter in an ISNULL function?

Something we can use to determine:

create function getvalue ( @param1 varchar(max), @param2 varchar(max), @value anytype ) return anytype as ... 
+4
source share
2 answers

It looks like you are looking for the sql_variant data type .

+4
source

Short answer no. sql_variant will let you get closer, but not quite.

If sql_variant is not enough, you can overcome this by specifying a few null parameters of all the corresponding types, but that is not very.

+2
source

Source: https://habr.com/ru/post/1395260/


All Articles