SqlAssessmentExtensions.GetAssessmentResults Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAssessmentResults(SqlSmoObject, String[]) |
Synchronously runs assessment for given |
GetAssessmentResults(SqlSmoObject, IEnumerable<ICheck>) |
Synchronously runs assessment for given |
GetAssessmentResults(Server, String[]) |
Synchronously runs assessment for given |
GetAssessmentResults(FileGroup, String[]) |
Synchronously runs assessment for given |
GetAssessmentResults(Server, IEnumerable<ICheck>) |
Synchronously runs assessment for given |
GetAssessmentResults(Database, String[]) |
Synchronously runs assessment for given |
GetAssessmentResults(Database, IEnumerable<ICheck>) |
Synchronously runs assessment for given |
GetAssessmentResults(AvailabilityGroup, String[]) |
Synchronously runs assessment for given |
GetAssessmentResults(AvailabilityGroup, IEnumerable<ICheck>) |
Synchronously runs assessment for given |
GetAssessmentResults(FileGroup, IEnumerable<ICheck>) |
Synchronously runs assessment for given |
GetAssessmentResults(SqlSmoObject, String[])
Synchronously runs assessment for given smoObject
and gives a IEnumerable<T> describing discovered issues.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.SqlSmoObject smoObject, params string[] checkIdsOrTags);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.SqlSmoObject * string[] -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (smoObject As SqlSmoObject, ParamArray checkIdsOrTags As String()) As IEnumerable(Of IAssessmentResult)
Parameters
- smoObject
- SqlSmoObject
Target SqlSmoObject.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(SqlSmoObject, IEnumerable<ICheck>)
Synchronously runs assessment for given smoObject
and gives a IEnumerable<T> describing discovered issues.
This method performs only given checks from checks
.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.SqlSmoObject smoObject, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> checks);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.SqlSmoObject * seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (smoObject As SqlSmoObject, checks As IEnumerable(Of ICheck)) As IEnumerable(Of IAssessmentResult)
Parameters
- smoObject
- SqlSmoObject
Target SqlSmoObject.
- checks
- IEnumerable<ICheck>
Optional IEnumerable<T> to perform only selected checks.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(Server, String[])
Synchronously runs assessment for given server
and gives a IEnumerable<T> describing discovered issues.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.Server server, params string[] checkIdsOrTags);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.Server * string[] -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (server As Server, ParamArray checkIdsOrTags As String()) As IEnumerable(Of IAssessmentResult)
Parameters
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(FileGroup, String[])
Synchronously runs assessment for given fileGroup
and gives a IEnumerable<T> describing discovered issues.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.FileGroup fileGroup, params string[] checkIdsOrTags);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.FileGroup * string[] -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (fileGroup As FileGroup, ParamArray checkIdsOrTags As String()) As IEnumerable(Of IAssessmentResult)
Parameters
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(Server, IEnumerable<ICheck>)
Synchronously runs assessment for given server
and gives a IEnumerable<T> describing discovered issues.
This method performs only given checks from checks
.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.Server server, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> checks);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.Server * seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (server As Server, checks As IEnumerable(Of ICheck)) As IEnumerable(Of IAssessmentResult)
Parameters
- checks
- IEnumerable<ICheck>
Optional IEnumerable<T> to perform only selected checks.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(Database, String[])
Synchronously runs assessment for given database
and gives a IEnumerable<T> describing discovered issues.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.Database database, params string[] checkIdsOrTags);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.Database * string[] -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (database As Database, ParamArray checkIdsOrTags As String()) As IEnumerable(Of IAssessmentResult)
Parameters
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(Database, IEnumerable<ICheck>)
Synchronously runs assessment for given database
and gives a IEnumerable<T> describing discovered issues.
This method performs only given checks from checks
.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.Database database, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> checks);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.Database * seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (database As Database, checks As IEnumerable(Of ICheck)) As IEnumerable(Of IAssessmentResult)
Parameters
- checks
- IEnumerable<ICheck>
Optional IEnumerable<T> to perform only selected checks.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(AvailabilityGroup, String[])
Synchronously runs assessment for given availabilityGroup
and gives a IEnumerable<T> describing discovered issues.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.AvailabilityGroup availabilityGroup, params string[] checkIdsOrTags);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.AvailabilityGroup * string[] -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (availabilityGroup As AvailabilityGroup, ParamArray checkIdsOrTags As String()) As IEnumerable(Of IAssessmentResult)
Parameters
- availabilityGroup
- AvailabilityGroup
Target AvailabilityGroup.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(AvailabilityGroup, IEnumerable<ICheck>)
Synchronously runs assessment for given availabilityGroup
and gives a IEnumerable<T> describing discovered issues.
This method performs only given checks from checks
.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.AvailabilityGroup availabilityGroup, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> checks);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.AvailabilityGroup * seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (availabilityGroup As AvailabilityGroup, checks As IEnumerable(Of ICheck)) As IEnumerable(Of IAssessmentResult)
Parameters
- availabilityGroup
- AvailabilityGroup
Target AvailabilityGroup.
- checks
- IEnumerable<ICheck>
Optional IEnumerable<T> to perform only selected checks.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.
Applies to
GetAssessmentResults(FileGroup, IEnumerable<ICheck>)
Synchronously runs assessment for given fileGroup
and gives a IEnumerable<T> describing discovered issues.
This method performs only given checks from checks
.
public static System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.IAssessmentResult> GetAssessmentResults (this Microsoft.SqlServer.Management.Smo.FileGroup fileGroup, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> checks);
static member GetAssessmentResults : Microsoft.SqlServer.Management.Smo.FileGroup * seq<Microsoft.SqlServer.Management.Assessment.Checks.ICheck> -> seq<Microsoft.SqlServer.Management.Assessment.IAssessmentResult>
<Extension()>
Public Function GetAssessmentResults (fileGroup As FileGroup, checks As IEnumerable(Of ICheck)) As IEnumerable(Of IAssessmentResult)
Parameters
- checks
- IEnumerable<ICheck>
Optional IEnumerable<T> to perform only selected checks.
Returns
Returns an IEnumerable<T> for target SqlSmoObject. Returns an empty IEnumerable<T> if no issues detected.