Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send email with value returned from StoredProc
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00479640
Message ID:
00480494
Vues:
20
The BOL implies that the query is optional but that there is a message parameter. Why not use it?

DECLARE @lcOutput nvarchar(4000)
EXEC usp_myproc @lcOutput OUTPUT
EXEC master..xp_sendmail 'emailaddress', @message = @lcOutput

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform