Skip to content
Advertisement

What is the simplest way to put pass an array of values into a parameter of TVF

Objective:

I would like to have a parameter in my function to allow the user to input a list of values. Ideally, the simplest solution … Note: I dont have permissions to create tables in dbs.

Situation:

Not sure how to pass several parameters in a TVF but this is how I would view the solution

Advertisement

Answer

Using a table type parameter, you can do something like the following:

How to JOIN:

How to use EXISTS:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement