I use the table-value parameter in one of our stored procedures. Here is the syntax I used:
@districtlist NumericList readonly
( NumericList is a custom table type).
However, as a requirement, I need to pass the default values ββto this parameter specified in the table.
@districtlist NumericList = 0 readonly
But the above code generates a syntax error. Is it possible to pass the default value to a table parameter? Can someone help me with this?
sql sql-server tsql
bmsqldev
source share