Hello there
Can someone show me how to write an SP or UDF which returns the results of an SQL statement after using a Where Clause as a parameter in the SP.
So the SP/UDF would have an input parameter @WHERECLAUSE and return parameter @returntable (col1, col2 etc).
Within the SP/UDF it would execute a pre-written SQL select using the inputted where clause and return the result of the SQL statement.
Regards
Spangeman
Can someone show me how to write an SP or UDF which returns the results of an SQL statement after using a Where Clause as a parameter in the SP.
So the SP/UDF would have an input parameter @WHERECLAUSE and return parameter @returntable (col1, col2 etc).
Within the SP/UDF it would execute a pre-written SQL select using the inputted where clause and return the result of the SQL statement.
Regards
Spangeman