It seems like this would would be trivial, but my SQL is not up to par and I can't figure it out. I just want to select a returned scalar from a stored procedure. Basically like this:
select dbo.sProcedure @param
But that throws an error. It's not really an option to return a result set from within the procedure. Is it possible to do this, or do I need to start rewriting some code?