Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_fileexist encapsulated in a function.

Status
Not open for further replies.

Jamfool

IS-IT--Management
Apr 10, 2003
484
GB
ok we have basically created a function which uses the existing undocumented xp_fileexist to check for a file but wrapped it in an existing function.

e.g

dbo.fnFileExists (filepath) which returns a bit

The first time this runs it takes 4-6 seconds, but the second time it is almost instantaneous. obviously this is being cached, but an hour later it is back to being slow.

Can the results of this be cached for longer?

Any advice would be great, thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top