Login or Sign Up to become a member!

EXPERTS, INFORMATION, IDEAS & KNOWLEDGE

Social bookmarker Add this

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: 1.0/5 (1 vote cast)