I think it is better to debug in QA, because you are divided by environments. You are able to change/recompile stored procedure without recompiling your c#. Also many times you have to change or rewrite or test sps on production environment, where you have no chance to build your c# code, since you have no visual studio environment there. Another thing - query analyzer is very light and fast. And I just like that feature where you can paste several lines of code and press F5, other lines and F5 again. :)