Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loops
Message
From
12/06/2008 17:57:57
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Loops
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01323623
Message ID:
01323623
Views:
63
How do I get a list of subdirectories in a directory and then loop through them, changing a variable each time the subdirectory name changes? In Foxpro I can do it in about 4 minutes. Can't figure out how to do it with SQL Query.

UPDATE: I found this...
Execute master..xp_subdirs N'C:\ImpactMD\Images'
...which is good, but how do I get them into something I can loop through?
Next
Reply
Map
View

Click here to load this message in the networking platform