Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a return value from a EXEC xp_cmdshell
Message
De
19/06/2008 20:31:21
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01325535
Message ID:
01325610
Vues:
14
>>I'm using this line to run an EXE. Sometimes the EXE is successful, and sometimes it's not. Is there a way to get whatever was displayed in the command window after it runs? I need to take a different action afterward depending on whether it was successful or not.
>>
>>
>>EXEC MASTER.dbo.xp_cmdshell @Merge_Script, no_output
>>
>
>EXEC @result = xp_cmdshell @Merge_Script, no_output
>
>http://msdn.microsoft.com/en-us/library/ms175046.aspx

What would I use to search through @result for a specific string?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform