Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to bypass lines in query window?
Message
 
 
À
10/08/2011 15:01:37
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01520522
Message ID:
01520616
Vues:
42
>>>>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.

I agree. This is pretty much why I asked the question in the first place; so that I have one procedure and do certain lines for testing.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform