Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First SP
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Divers
Thread ID:
00759576
Message ID:
00759600
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Sergey,
>
>That's helpful. Could you please explain one simple principle on this example:
>
>IF @tcUserID IS NULL
>      BEGIN
>        PRINT 'ERROR: The UserID value must contain a value.'
>        RETURN 1
>      END
>
>What happens here? Is it an early exit point?

Yes

>Do I need to enclose IF with ELSE always?

No.

>
>I want to understand the principle, I looked into few SPs and I'm trying to read Help, but it's not that helpful so far... May be I'm looking in the wrong place...
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform