ml1n4
asked on
Deleting files from a server file share using an overnight stored procedure
Hello Experts,
I am trying to delete a set of files from a file share using an overnight stored procedure in SQL 2000. I can delete the files manually from the server using Windows Explorer and the command prompt, but I'm getting 'Access Denied' from the Query Analyser. Any ideas?
DECLARE @KillString varchar(255)
SET @KillString = 'DEL "F:\Shared Documents\Attachments\1.ic o"'
EXEC Master..xp_cmdShell @KillString
I am trying to delete a set of files from a file share using an overnight stored procedure in SQL 2000. I can delete the files manually from the server using Windows Explorer and the command prompt, but I'm getting 'Access Denied' from the Query Analyser. Any ideas?
DECLARE @KillString varchar(255)
SET @KillString = 'DEL "F:\Shared Documents\Attachments\1.ic
EXEC Master..xp_cmdShell @KillString
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER