Hi @JamesProsser ,
In SSMS, go to Tools->Options->SQL Server Object Explorer->Scripting. In the section Object scipting options, check Generate script for dependent objects. Then in the scripting context menu, select DROP and CREATE TO. (Only CREATE TO does not seem to honour this option.)
Refer to this similar thread to get another solution.
If the answer is helpful, please click "Accept Answer" .