unable to delete files using FSO inside Stored Proc

  • hi folks,

    here's a simple code that shows what I'd like to achieve:

    declare @fso int,@fldr int

    EXEC sp_OACreate 'scripting.filesystemobject', @fso OUTPUT

    EXEC sp_OAMethod @fso, 'DeleteFile("C:\temp\logout.gif")', @fldr OUTPUT

    Basically, I'm looking at deleting files using FSO inside SP but to no avail. Any thoughts ?:

    Cheers,

  • fixed it, silly me..:D

  • What was the problem (for others)? Security?

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply