Try "netstat -b" - this should give you open connections with the executable name in most cases.

If this works for the SQL service you can pipe the output to "FIND /C" to count the lines with the SQL executable.