﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by iecdba  / Getting Information if a file exists in SQL / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 07:32:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Getting Information if a file exists in SQL</title><link>http://www.sqlservercentral.com/Forums/Topic406806-647-1.aspx</link><description>The following 2 files both exist on my c:\ drive:      test.txt and config.sysWhen I use : EXEC master..xp_fileexist 'C:\CONFIG.SYS' I get the following results:File exists      Files is a directory       Parent Directory Exists1	              0	             1Which is what I would expect.However, when I use:EXEC master..xp_fileexist 'C:\TEST.TXT' I get the follwoing results: File exists      Files is a directory       Parent Directory Exists0	              0	             1Any help would be appreciated</description><pubDate>Thu, 24 Jan 2008 05:40:58 GMT</pubDate><dc:creator>tracey.harrington</dc:creator></item><item><title>Getting Information if a file exists in SQL</title><link>http://www.sqlservercentral.com/Forums/Topic406806-647-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/T-SQL+Aids/30424/"&gt;Getting Information if a file exists in SQL&lt;/A&gt;[/B]</description><pubDate>Thu, 04 Oct 2007 08:12:08 GMT</pubDate><dc:creator>iecdba</dc:creator></item></channel></rss>