I am executing stored procedure using linked server and getting error
"Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection"
I've change my procedure and included
SET ANSI_WARNINGS ON
SET ANSI_NULLS ON
but then i am getting error "Divide by zero error encountered."
The procedure works fine without linked server. Could you please suggest how to avoid error "Divide by zero error encountered."