change the sp to a function...it'll work..(no exec required in that case),
sp cant be used in select statement..functions r ment for that....
sp cant be used in select statement..functions r ment for that....