Login or Sign Up to become a member!
LessThanDot Site 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 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 fileexist

From Wiki

Jump to: navigation, search

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

Returns 1 if a file exists, 1 if the file is a directory and 1 if a parent directory exists

  1. exec master..xp_fileexist 'C:\Program Files\Microsoft SQL Server\MSSQL\readme.txt'


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

Part of SQL Server Programming Hacks

Section Undocumented but handy

195 Rating: 2.3/5 (56 votes cast)