SQL Profiler是否可以与LocalDB一起使用? [英] Does SQL Profiler work with LocalDB?

查看:92
本文介绍了SQL Profiler是否可以与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆