Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SQL Profiler work with LocalDB?

Is it possible to use SQL Profiler to observe queries being requested of a LocalDB instance?

like image 743
Drew Noakes Avatar asked Jul 10 '13 14:07

Drew Noakes


1 Answers

You can use SQL Profiler just as you do with all other SQL editions as long as you know the proper server name. You can find the server name using the SqlLocalDb utility.

To find it, use sqllocaldb info YourInstanceName to find the Instance Pipe Name. It has the form np:\\.\pipe\LOCALDB#12345\tsql\query

Use this as the server name to connect to the server and start profiling

like image 186
Panagiotis Kanavos Avatar answered Oct 01 '22 06:10

Panagiotis Kanavos