Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving xp_cmdshell data sets
Message
De
22/08/2002 14:18:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00692566
Message ID:
00692594
Vues:
34
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform