Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Getting Information if a file exists in SQL Expand / Collapse
Author
Message
Posted Thursday, October 04, 2007 8:12 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Saturday, July 20, 2002 12:00 AM
Points: 22, Visits: 1
Comments posted to this topic are about the item Getting Information if a file exists in SQL


Post #406806
Posted Thursday, January 24, 2008 5:40 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, February 10, 2010 6:32 AM
Points: 1, Visits: 43
The following 2 files both exist on my c:\ drive:

test.txt and config.sys

When I use :

EXEC master..xp_fileexist 'C:\CONFIG.SYS'
I get the following results:

File exists Files is a directory Parent Directory Exists
1 0 1

Which 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 Exists
0 0 1

Any help would be appreciated
Post #446852
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse