Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using named parameters in Table Valued Function

Is there a way to use named parameters with table valued functions ? My users insist to use them with their interface to my db objects.

like image 298
nojetlag Avatar asked Feb 11 '13 16:02

nojetlag


2 Answers

No, you can't do that. Unlike stored procedures where you can use named parameters the parameters in table valued functions are strictly position-based.

like image 143
Joachim Sauer Avatar answered Oct 02 '22 05:10

Joachim Sauer


It seems it has changed with SQL-Server 2016. Named parameter in T-SQL function is supported in SQL Server 2016 https://scribnasium.com/2017/01/named-parameters-in-t-sql-functions/

like image 31
Sandeep Avatar answered Oct 02 '22 05:10

Sandeep