AlertCollection.Script Method (ScriptingOptions)
Generates a Transact-SQL script that can be used to re-create the collection of alerts as specified by the script options.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
A ScriptingOptions object value that is used to specify the script options.
The generated script might contain undocumented, internal procedures, which are required for the complete script output.
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.