Skip to content

Commit

Permalink
SQLTrace BIDTraceProvider improvements
Browse files Browse the repository at this point in the history
Added two new BIDTraceProvider entries to SQLTrace.ini:
1. All drivers from the separate sections, plus System.Data.OracleClient.
2. All all trace points, except SQL Server BID Traces, none of which are technically supported except SQL 2014. Use XEvent SNI traces on 2016 and later. All ADODB and BCP and related events are included.

Fixed the name of the SQLJDBC_XA provider in the lookup table in SQLTrace.ps1.
  • Loading branch information
Malcolm-Stewart committed Sep 11, 2023
1 parent dd5bb1a commit 1391cd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions SQLTrace/SQLTrace.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ BIDProviderList = System.Data System.Data.SNI
# BIDProviderList = OLEDB SQLOLEDB DBNETLIB SQLNCLI11 MSOLEDBSQL MSOLEDBSQL19 # These are the currently supported OLE DB Providers
# BIDProviderList = ODBC SQLSRV32 DBNETLIB MSODBCSQL11 MSODBCSQL13 MSODBCSQL17 MSODBCSQL18 # These are the currently supported ODBC Drivers

# Combined drivers
# BIDProviderList = System.Data System.Data.SNI System.Data.OracleClient OLEDB MSDASQL SQLOLEDB DBNETLIB SQLNCLI SQLNCLI10 SQLNCLI11 MSOLEDBSQL MSOLEDBSQL19 ODBC SQLSRV32 MSODBCSQL11 MSODBCSQL13 MSODBCSQL17 MSODBCSQL18

# All BID trace points - not SQL Server BID Tracing - use XEvent tracing
# BIDProviderList = System.Data System.Data.SNI System.Data.OracleClient OLEDB SQLOLEDB DBNETLIB SQLNCLI SQLNCLI10 SQLNCLI11 MSOLEDBSQL MSOLEDBSQL19 ODBC SQLSRV32 MSODBCSQL11 MSODBCSQL13 MSODBCSQL17 MSODBCSQL18 MSDADIAG ADODB ADOMD BCP BCP10 MSADCE MSADCF MSADCO MSADDS MSADOX MSDAORA MSDAPRST MSDAREM MSDART MSDATL3 ODBCBCP RowsetHelper SQLBROWSER System.Data.Entity SQLJDBC_XA


################## NETWORK TRACE ##########
##
Expand Down
4 changes: 2 additions & 2 deletions SQLTrace/SQLTrace.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ LogRaw "
/_______ /\_____\ \_/|_______ \|____| |__| (____ / \___ >\___ >
\/ \__> \/ \/ \/ \/
SQLTrace.ps1 version 1.0.0197.0
SQLTrace.ps1 version 1.0.0198.0
by the Microsoft SQL Server Networking Team
"

Expand Down Expand Up @@ -543,7 +543,7 @@ Function GETBIDTraceGuid($bidProvider)
"System.Data.OracleClient" { return "{DCD90923-4953-20C2-8708-01976FB15287} 0x630ff 0 System.Data.OracleClient.1 "}
"System.Data.SNI" { return "{C9996FA5-C06F-F20C-8A20-69B3BA392315} 0x630ff 0 System.Data.SNI.1 "}
"System.Data.Entity" { return "{A68D8BB7-4F92-9A7A-D50B-CEC0F44C4808} 0x630ff 0 System.Data.Entity.1 "}
"SQLJDBC,XA" { return "{172E580D-9BEF-D154-EABB-83429A6F3718} 0x630ff 0 SQLJDBC,XA.1 "}
"SQLJDBC_XA" { return "{172E580D-9BEF-D154-EABB-83429A6F3718} 0x630ff 0 SQLJDBC,XA.1 "}
"MSOLEDBSQL" { return "{EE7FB59C-D3E8-9684-AEAC-B214EFD91B31} 0x630ff 0 MSOLEDBSQL.1 "}
"MSOLEDBSQL19" { return "{699773CA-18E7-57DF-5718-C244760A9F44} 0x630ff 0 MSOLEDBSQL19.1 "}

Expand Down

0 comments on commit 1391cd4

Please sign in to comment.