question

Leia avatar image
Leia asked

SQL Profiler script to determine workstations not on ODBC native client

Hi, Could someone please help me to write a SQL Profiler script, to determine workstations that do not have ODBC native client installed? Thank you.
odbcprofiler
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

raadee avatar image
raadee answered
Isn't it easier to contact your Windows Admins and check if they can fetch that information for you? Usually they have some software that keeps track of installed applications in their environment, if so let them just run a report on the database.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Shawn_Melton avatar image
Shawn_Melton answered
You can use sys.dm_exec_sessions to determine if an ODBC connection is being made but it will not give you what ODBC client the connection is using, neither will SQL Profile. If you have elevated privileges on your domain or network you would have to seek another source to get this information from the workstations of your users (VBScript, PowerShell, etc). Otherwise speak with your system administration team or possibly Helpdesk folks and they may already have a software inventory of the computers.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Leia avatar image
Leia answered
I got the answer elsewhere. Thanks anyway for those who replied. You just need to setup a template in the SQL Profiler and run it and it will capture workstations that are not using native odbc driver. Cheers.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Shawn_Melton avatar image Shawn_Melton commented ·
can you provide a screenshot or script out the trace you are using. I tried doing this in SQL Profiler and I am not seeing the event that shows the connection info in that detail.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.