Generator Class

Represents the application's generator.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

public sealed class Generator : NamedSmoObject
public final class Generator extends NamedSmoObject
public final class Generator extends NamedSmoObject

Each application has one generator.

Settings for the generator determine which computer runs the generator and how many threads the generator can use when processing application rules. The values you specify for the generator settings should be considered in terms of a trade-off between improving application performance and monopolizing system resources.

The following examples show how to define a generator and add it to an application:

// Define generator for application
Generator generator = new Generator(myApplication, "Generator");
generator.SystemName = notificationServicesHost;
generator.ThreadPoolSize = 0;
myApplication.Generator = generator;

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions