Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Community Wiki

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Navigation

Google Ads

Xp subdirs

From Wiki

Jump to: navigation, search

You should not depend on this undocumented procedure because it might me deprecated in the future, but that it is good to use since it saves you some scripting or using terminal services

Lists a directory's immediate sub directory (1 level down)

  1. EXEC master..xp_subdirs 'C:\Program Files\Microsoft SQL Server\MSSQL\'


Contributed by: --SQLDenis 15:34, 31 May 2008 (GMT)

Part of SQL Server Programming Hacks

Section Undocumented but handy

197 Rating: 2.0/5 (6 votes cast)