Link to home
Start Free TrialLog in
Avatar of advlgx
advlgx

asked on

Incorrect Syntax with xp_delete_file

What's wrong with this command? I get Incorrect Syntax near 'txt'. The odd part is that this was generated my the maintenance plan wizard....

EXECUTE master.dbo.xp_delete_file 1,N'''',N''txt'',N''2008-01-12T04:01:38''
Avatar of advlgx
advlgx

ASKER

I also tried:
EXECUTE master.dbo.xp_delete_file 1,N'',N'txt',N'2008-01-12T04:01:38'

and get an Invalid Parameter error
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of advlgx

ASKER

Got it, the second parameter was not filled in for some reason. Added C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG