PowerShell Logo Small

Enable-OdbcPerfCounter



This is the built-in help made by Microsoft for the command 'Enable-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

Enables the ODBC connection pooling Performance Monitor counters for troubleshooting ODBC connection pooling.

SYNTAX


Enable-OdbcPerfCounter [-InputObject] <CimInstance> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Enable-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

Disable-OdbcPerfCounter
Get-OdbcPerfCounter
N:Wdac



REMARKS

<

Examples




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



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






PS C:\> Enable-OdbcPerfCounter -Platform All



Enable 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 saves the result into a PowerShell variable that
can be reused in Disable-OdbcPerfCounter: