I had this problem with one of my stored procedures. Solution for me was
to go through it and wherever a divide by 0 could be generated, use
'nullif' to change a 0 value to a null value.
eg
Select @new = @100 / @zero
becomes
Select @new = @100 / nullif(@zero,0)
My stored procedure trapped divide by 0 via logic so it will never be
execute in a live situation and why it was generated in VS2005 is still
a mystery but this change was enough to allow vs2005 to retrieve the
schema info and populate the grid fields etc.
*** Sent via Developersdex
http://www.developersdex.com ***