Is there a SQL Server Profiler for SQL Server Expr

2019-01-11 05:49发布

Is there a SQL Server Profiler for SQL Server Expess? Maybe an open-source one? Or maybe just a tool that helps me see what query is passed to the database?

5条回答
在下西门庆
2楼-- · 2019-01-11 06:23

Anjlab SQL Server Profiler is no longer free and it only worked on 2005 instances. I've wrote a basic SQL Server 2012 Profiler which works perfectly on 2012 Enterprise and 2005 Developer engine instances. You can download here

please give me your feedback.

查看更多
Anthone
3楼-- · 2019-01-11 06:27

Ok, old question but maybe this helps other people with same problem.

You can activate the SQL Server Express Error Log in a way that it monitors all statements runned agaist every database. To do so you must run the following on an elevated command prompt (that is, a command prompt runned as administrator):

net stop MSSQL$SQLEXPRESS
net start MSSQL$SQLEXPRESS /T4032

Now, using the SQL Server Management Studio run the following:

dbcc traceon(3605, -1)

Now you can look at the ERRORLOG file within the Log folder of MS SQL folder (which may be "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Log" for the default installation of SQL Server Express 2012).

Hope this helps someone (as it sure helped me)

查看更多
smile是对你的礼貌
4楼-- · 2019-01-11 06:28

SP1 of SQL Server Express 2012 Advanced Services now includes the full SQL Management Studio, and this has the profiler.

查看更多
虎瘦雄心在
5楼-- · 2019-01-11 06:32

IIRC, the profiler is one of the features not available for SQL Server Express.

However, I'm also under the impression that SQL Server Express still supports many of the features of the for-pay editions, and it's just that they are disabled in the Express Edition of Management Studio. So if you also have access to a full db and the management studio that comes with you might be able to point that profiler at your express installation.

In this case I suspect that won't work, since the profiler also depends on an extra provided by the database. Still, it's worth a shot.

If it doesn't work there are some third party tools available that should be able to do what you want.

查看更多
不美不萌又怎样
6楼-- · 2019-01-11 06:39

SQL Express Profiler will likely meet your needs. When this question was asked it was free, but it looks like it has recently changed to a paid license model.

查看更多
登录 后发表回答