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 getfiledetails

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

List the file detals for a file, the following fields are returned Alternate Name,Size,Creation Date, Creation, Time Last Written, Date Last Written, Time Last Accessed, Date Last Accessed Time and Attributes

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


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

Part of SQL Server Programming Hacks

Section Undocumented but handy

198 Rating: 2.2/5 (70 votes cast)