SQL Profiler是否可以与LocalDB一起使用? [英] Does SQL Profiler work with LocalDB?
问题描述
是否可以使用SQL事件探查器观察LocalDB实例所请求的查询?
Is it possible to use SQL Profiler to observe queries being requested of a LocalDB instance?
推荐答案
只要知道正确的服务器名称,就可以像处理所有其他SQL版本一样使用SQL Profiler.您可以使用 SqlLocalDb 实用工具找到服务器名称.
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.
要找到它,请使用sqllocaldb info YourInstanceName
查找Instance Pipe Name
.它的格式为np:\\.\pipe\LOCALDB#12345\tsql\query
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
这篇关于SQL Profiler是否可以与LocalDB一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!