Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving xp_cmdshell data sets
Message
From
22/08/2002 14:18:56
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00692566
Message ID:
00692594
Views:
35
Hi Sergey,

Thanks and xp_fileexist is exactly what we want, but um, it's knid of the same as xp_cmdshell. In Query analyzer xp_fileexist returns a result set such as:
File Exists File is a Directory Parent Directory Exists 
----------- ------------------- ----------------------- 
1           0                   1

(1 row(s) affected)
However maybe I'm dense or something but I don't see the mechanism that allows you to access this result set after it's returned if xp_fileexist is executed in a SP.

What am I missing here??

Bill

>See Re: Code to do an ADIR() Message #687244.
>
>>We are trying to use SQL Server xp_cmdshell SP to retireve directory information using a 'DIR xxx.*' type command. This returns a result set in Query Analyzer with an nvarchar(255) column named 'output'. However, we have not been able to find documentation on how to run the command in a SP and force the result set into, say, a temporary table in order to manipulate the data. How would this be done?
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform