AuditSpecification.Script Method ()
Generates a Transact-SQL script that can be used to re-create the audit specification.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The Script method generates a set of Transact-SQL statements that are used to create the database. This method generates a script that can be used to create the database only. The whole database, including dependent objects such as tables, can be scripted by using the Scripter object.
The generated script might contain undocumented, internal procedures, which are required for the complete script output.