CodeAnalysisServiceFactory.CreateAnalysisService CodeAnalysisServiceFactory.CreateAnalysisService CodeAnalysisServiceFactory.CreateAnalysisService Method

Definition

Overloads

CreateAnalysisService(SqlServerVersion) CreateAnalysisService(SqlServerVersion) CreateAnalysisService(SqlServerVersion)

Creates an analysis service with the standard properties and all rules turned on by default.

CreateAnalysisService(TSqlModel) CreateAnalysisService(TSqlModel) CreateAnalysisService(TSqlModel)

Creates an analysis service with the standard properties and all rules turned on by default.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings) CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings) CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings) CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings) CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

CreateAnalysisService(SqlServerVersion) CreateAnalysisService(SqlServerVersion) CreateAnalysisService(SqlServerVersion)

Creates an analysis service with the standard properties and all rules turned on by default.

public Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService CreateAnalysisService (Microsoft.SqlServer.Dac.Model.SqlServerVersion version);
member this.CreateAnalysisService : Microsoft.SqlServer.Dac.Model.SqlServerVersion -> Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService
Public Function CreateAnalysisService (version As SqlServerVersion) As CodeAnalysisService

Parameters

version
SqlServerVersion SqlServerVersion SqlServerVersion

The expected SqlServerVersion of models to be analyzed. This should be known at the time the service is created since only rules compatible with this SqlServerVersion will be loaded and run.

Returns

CreateAnalysisService(TSqlModel) CreateAnalysisService(TSqlModel) CreateAnalysisService(TSqlModel)

Creates an analysis service with the standard properties and all rules turned on by default.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

public Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService CreateAnalysisService (Microsoft.SqlServer.Dac.Model.TSqlModel model);
member this.CreateAnalysisService : Microsoft.SqlServer.Dac.Model.TSqlModel -> Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService
Public Function CreateAnalysisService (model As TSqlModel) As CodeAnalysisService

Parameters

model
TSqlModel TSqlModel TSqlModel

The TSqlModel that will be analyzed. The version of the model must be known at the time the service is created since only rules compatible with that SqlServerVersion will be loaded and run.

Returns

CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings) CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings) CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

public Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService CreateAnalysisService (Microsoft.SqlServer.Dac.Model.SqlServerVersion version, Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisServiceSettings settings);
member this.CreateAnalysisService : Microsoft.SqlServer.Dac.Model.SqlServerVersion * Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisServiceSettings -> Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService
Public Function CreateAnalysisService (version As SqlServerVersion, settings As CodeAnalysisServiceSettings) As CodeAnalysisService

Parameters

version
SqlServerVersion SqlServerVersion SqlServerVersion

The expected SqlServerVersion of models to be analyzed. This must be known at the time the service is created since only rules compatible with this SqlServerVersion will be loaded and run.

settings
CodeAnalysisServiceSettings CodeAnalysisServiceSettings CodeAnalysisServiceSettings

Settings object defining how to configure the service

Returns

CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings) CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings) CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

public Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService CreateAnalysisService (Microsoft.SqlServer.Dac.Model.TSqlModel model, Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisServiceSettings settings);
member this.CreateAnalysisService : Microsoft.SqlServer.Dac.Model.TSqlModel * Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisServiceSettings -> Microsoft.SqlServer.Dac.CodeAnalysis.CodeAnalysisService
Public Function CreateAnalysisService (model As TSqlModel, settings As CodeAnalysisServiceSettings) As CodeAnalysisService

Parameters

model
TSqlModel TSqlModel TSqlModel

The TSqlModel that will be analyzed. This must be known at the time the service is created since only rules compatible with the SqlServerVersion for the model will be loaded and run.

settings
CodeAnalysisServiceSettings CodeAnalysisServiceSettings CodeAnalysisServiceSettings

Settings object defining how to configure the service

Returns

Applies to