Community Debugging techniques (focusing on T-SQL) by SSWUG Research (Kenneth Fisher) tl;dr; Add PRINT and/or SELECT statements. Comment/uncomment out pieces of code to isolate problems. Change INSERT/UPDATE/DELETE statements to SELECTs. Register to Read