liorvikel (7/27/2016)
This is the error of agent in view history'sERROR: %1 is not a valid Win32 application.
Now all we need is the code that caused that error and we might be able to help. The error is clearly saying that "%1" isn't a valid application and, since "%1" is typical of an operating system variable/parameter for a batch process, there's a piece of code somewhere that isn't being passed the correct parameter or the variable hasn't been defined correctly. Only you know or can find where this code is.
As for backup scripts and *** previously mentioned on this thread, Ola Hallengren's code is good for those that prefer to use someone else's script. Google for it and download it and the instructions for installation and use.
As a bit of a sidebar, if you don't already have it, download SQL Server "Books Online" and start reading about the different areas you want to know about, such a backups.
--Jeff Moden
Change is inevitable... Change for the better is not.