>>>Hi,
>>>
>>>Is there a IF .F. syntax that I can use in a query window to bypass some lines (temporarily). In VFP I would use IF .F. ENDIF. Is there a way to do the same in SQL Server query window?
>>>
>>>TIA.
>>
>>And remember you can highlight just the lines you want to run and press F5
>>(obviously only a good solution for contiguous code )
>
>I didn't know that. Thank you.
One handy use for that is if you have half a dozen queries you run regularly to test something. You can throw them all in one sql and then bring that up to run portions when you want, kind of like we do with the VFP comman window, running blocks of code from history.
Less cumbersome than storing each query off in its own sql file.
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.