Skip to content

Commit

Permalink
fix column names (#4160)
Browse files Browse the repository at this point in the history
leave in old ones for backwards compat
  • Loading branch information
potatoqualitee committed Oct 9, 2018
1 parent b782202 commit 4abfbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/Get-DbaDeprecatedFeature.ps1
Expand Up @@ -61,7 +61,7 @@
begin {
$sql = "SELECT SERVERPROPERTY('MachineName') AS ComputerName,
ISNULL(SERVERPROPERTY('InstanceName'), 'MSSQLSERVER') AS InstanceName,
SERVERPROPERTY('ServerName') AS SqlInstance, object_name, instance_name as deprecated_feature, cntr_value as UsageCount
SERVERPROPERTY('ServerName') AS SqlInstance, object_name, instance_name as DeprecatedFeature, object_name as ObjectName, instance_name as deprecated_feature, cntr_value as UsageCount
FROM sys.dm_os_performance_counters WHERE object_name like '%Deprecated%'
and cntr_value > 0 ORDER BY deprecated_feature"
}
Expand All @@ -78,7 +78,7 @@
}

try {
$server.Query($sql)
$server.Query($sql) | Select-DefaultView -Property ComputerName, InstanceName, SqlInstance, ObjectName, DeprecatedFeature, UsageCount
}
catch {
Stop-Function -Message "Failure" -ErrorRecord $_ -Target $instance -Continue
Expand Down

0 comments on commit 4abfbab

Please sign in to comment.