I have been testing SSMS 2016 and I wanted to script out some SQL Agent jobs. When attempting to do so, I ran across an error.
Discover dependencies failed. Job is not supported in dependency discovery.
The description under additional information isn’t very helpful. If it was labeled SQL Agent jobs do not support dependency discovery it would be better. This error occurs when the Generate Scripts for dependent objects option is enabled under scripting.
To disable it, do the following:
1. Select Tools, then Options…
2. Select SQL Server Object Explorer, then Scripting
3. Under Object scripting options, change Generate scripts for dependent objects to False