I wanted to have something like
SELECT * FROM refs1 WHERE (EXEC ref_id) = this.id
Should I turn the SP into a function
Transact-SQL
I wanted to have something like
SELECT * FROM refs1 WHERE (EXEC ref_id) = this.id
Should I turn the SP into a function