x

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.
more ▼

asked Mar 29, 2012 at 03:51 PM in Default

Leia gravatar image

Leia
0 1 1 1

(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

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.
more ▼

answered Apr 03, 2012 at 02:46 PM

raadee gravatar image

raadee
2.8k 8 12 18

(comments are locked)
10|1200 characters needed characters left

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.
more ▼

answered Apr 03, 2012 at 03:19 PM

Shawn_Melton gravatar image

Shawn_Melton
5.3k 19 21 29

(comments are locked)
10|1200 characters needed characters left
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.
more ▼

answered Apr 05, 2012 at 03:33 PM

Leia gravatar image

Leia
0 1 1 1

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.
Apr 05, 2012 at 07:52 PM Shawn_Melton
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x37
x34

asked: Mar 29, 2012 at 03:51 PM

Seen: 1054 times

Last Updated: Apr 05, 2012 at 07:52 PM