CodeAnalysisServiceFactory.CreateAnalysisService Method

Definition

Overloads

CreateAnalysisService(SqlServerVersion)

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

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)

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)

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)

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

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

A CodeAnalysisService that can analyze the contents of the TSqlModel

Applies to

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

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

A CodeAnalysisService that can analyze the contents of the TSqlModel

Applies to

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

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

Settings object defining how to configure the service

Returns

A CodeAnalysisService that can analyze the contents of the TSqlModel

Applies to

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

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

Settings object defining how to configure the service

Returns

A CodeAnalysisService that can analyze the contents of the TSqlModel

Applies to