Note. Oddly enough, even a free toad for SQL Server does not allow you to run just an instruction under the cursor.
It is really annoying that TOAD does not support what it promises:
From TOAD help: [F9 to execute] part of an instruction that can contain one or more statements. You can select part of the instruction by placing the cursor inside or next to the operator or by selecting the operator. Note. A toad considers all contiguous statements (including comments), separated from the cursor or from each other, in less than two empty lines. If an error occurs during the execution of an instruction, an error message appears that allows you to either ignore the error or continue or stop execution.
I tried this a million times, but it just executes the whole script. I wanted to find him in the user support group (toadss (at) yahoogroups.com), but yahoo has the dumbest search base! He can't even find the keyword βtoadβ in the mailbox group, DOH!
I think TOAD is the best tool for queries, but the lack of this feature also annoys me a lot.
UPDATE: SOLUTION FOUND! I asked this question in the toadss mail group and got an answer. Unlike Oracle, you must separate the SQL Server statements with the GO keyword after each statement. Only if you do this does the F9 button work as expected, following the current instruction.
ercan Sep 07 '09 at 15:06 2009-09-07 15:06
source share