I have been a light user of SQL in the past and now I have inherited some code which is quite long and little untidy. I am using SQL Management Server Studio 2008R2 - which is completely new to me. I've had a test server set-up and now have the debugger working, which I tried out on a small simple query. It did not work as expected and I'm struggling to find easy reference material for "beginners".
So first question is; where to get a primer for MS-SQL debugging (and writing for that matter)?
The specific issues with the debugger that I experienced were:
1. setting break-points (OK); starting the process with step-into (OK); then the all break-points disappearing into one on line 1 under the debuggers yellow arrow. It seems to not allow any other breaks. Why?
2. Trying to set some watches at random. Allowed me to select almost anything but could never evaluate anything. Why?
The query itself is only 35 lines and it executes properly, I was simply using it as a self-training tool.
The reason I need the tool is that I have 6500 line query that executes Ok with the one exception of doubling the output ie every row is duplicated. I suspect it is a join to far but pinning it down is currently beyond me.
Sorry for such simple questions but all help/advice gratefully received.