-
Notifications
You must be signed in to change notification settings - Fork 0
Find DbIndexes
github-actions edited this page Jul 30, 2026
·
1 revision
external help file: Databaseline-help.xml Module Name: Databaseline online version: https://dbatools.io/ schema: 2.0.0
Returns indexes using a column with the given name.
Find-DbIndexes [-SqlInstance] <DbaInstanceParameter> [-Database] <String> [-ColumnName] <String>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Find-DbIndexes -SqlInstance '(localdb)\ProjectsV13' -Database AdventureWorks2014 -ColumnName ErrorLogID
SchemaName : dbo TableName : ErrorLog IndexName : PK_ErrorLog_ErrorLogID IndexOrdinal : 1 IsUnique : 1 IsClustered : 1 IsDisabled : 0 ColumnsInIndex : 1
The server to use, by name or constructed via Connect-DbaInstance.
Type: DbaInstanceParameter
Parameter Sets: (All)
Aliases: Parent, ServerInstance
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe the database to connect to on the server.
Type: String
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe column name to search for.
Type: String
Parameter Sets: (All)
Aliases: ColName
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.