Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load directory listing into table
Message
De
26/01/2012 05:43:57
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01533716
Message ID:
01533789
Vues:
34
Thanks sergey

actually found this morning a typo

an extra space so "dir C:\test\ *.* /b" should have been "dir C:\test\*.* /b"

Nick


>Maybe you have records already in the table?
>
>>
>>I'm using
>>
>>insert into tempdb.dbo.scan_file_list
>>exec xp_cmdshell 'dir C:\test\ *.* /b'
>>
>>to try and load a list of filenames into a tble.
>>
>>But I get other for instance files from the windows system directory included .
>>
>>What am I doing wrong.
>>
>>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform