Hello
What I want to do is retrieve the contents of a directory, from which I will import data. The reason I want to do a listing is that the number of files may vary, although all of them will be CSV format.
I want to then loop round and import each one.
I know that I can use:
master..xp_cmdshell
However, two things:
a). How do I get the output of the above command into table or working array?
b). I was wondering whether there was a different more direct way of doing this.
I look forward to hearing your ideas,
kindest regards
OLAPer
:
What I want to do is retrieve the contents of a directory, from which I will import data. The reason I want to do a listing is that the number of files may vary, although all of them will be CSV format.
I want to then loop round and import each one.
I know that I can use:
master..xp_cmdshell
However, two things:
a). How do I get the output of the above command into table or working array?
b). I was wondering whether there was a different more direct way of doing this.
I look forward to hearing your ideas,
kindest regards
OLAPer
: