Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture xp_CmdShell result
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Capture xp_CmdShell result
Miscellaneous
Thread ID:
01123552
Message ID:
01123552
Views:
53
what would be the correct syntax for this?
I'm trying to capture the result into a table...
insert into logfl  
(
EXEC @result = xp_cmdshell 'clsx'
IF (@result = 0)
   PRINT 'Success'
ELSE
   PRINT 'Failure'
) xx
Reply
Map
View

Click here to load this message in the networking platform