I know it is not possible to declare variables inside inline table valued function. Further more, user defined table type variable needs "SELECT INTO" or "INSERT" statements to fill data which is not possible in the inline table valued function.
What I want to do is:
- create two inline table valued functions funcA, funcB
- somehow declare and fill a table type variable inside, let's say, funcA
- then pass it to funcB as calling it
Is there any work around to overcome my problem? Thanks in advance.
You can declare variable table inside table-valued function like this: