PowerShell Logo Small

Disable-OdbcPerfCounter



This is the built-in help made by Microsoft for the command 'Disable-OdbcPerfCounter', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Disables the ODBC connection pooling Performance Monitor counters for ODBC connection pooling feature.

SYNTAX


Disable-OdbcPerfCounter [-InputObject] <CimInstance> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Disable-OdbcPerfCounter [[-Platform] <String>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


For more information about ODBC, data source names, and drivers, see Microsoft Open Database Connectivity
(ODBC)http://msdn.microsoft.com/en-us/library/ms710252.aspx, Data Sourceshttp://msdn.microsoft.com/en-us/library/ms711688.aspx, and
Drivershttp://msdn.microsoft.com/en-us/library/ms715383.aspx.



<

RELATED LINKS

Enable-OdbcPerfCounter
Get-OdbcPerfCounter
N:Wdac



REMARKS

<

Examples




PS C:\> Disable-OdbcPerfCounter -Platform 32-bit



Disable the ODBC Performance Counter setting on 32-bit platform:






PS C:\> Disable-OdbcPerfCounter -Platform All



Disable the ODBC Performance Counter setting on both 32-bit and 64-bit platform:






PS C:\> $perfCounter = Enable-OdbcPerfCounter -Platform 32-bit -PassThru
<Execute some ODBC applications that are using ODBC pooling>
Disable-OdbcPerfCounter $perfCounter



This command first enables the ODBC Performance Counter setting on 32-bit platform. It also saved the result into a PowerShell variable that
can be reused in Disable-OdbcPerfCounter: