I have temp table accepting result set of executing stored proc. I can't change stored proc. The sp return null columns in some rows but I want to convert NULL to 0 when insert them into the temp table. How to do it easily?
My SQL is like:
Insert into #temp (co1, co2, co3)
exec sp_xxx
co3 from sp_xxx might be NULL, but I want to convert it to 0 and store in #temp.col3