1

I am troubleshooting for some SQL issue and I use SQL Profiler in order to diagnose some problem.

Is it possible to write some messages into SQL Profiler by adding some lines in a TSQL query?

thanks!

4

2 回答 2

0

你可以通过向你的 t-sql 添加评论来做到这一点

 -- My message
select * from table1

并将所有内容发送到 sql

于 2011-06-08T18:11:15.873 回答
0

应用程序名称也应该不同。对于我们的安装,网站上的活动给出了一个应用程序名称“.Net SqlClient Data Provider”,而来自 SQL Server Management Studio 的查询被指定为......好吧......“SQL Server Management Studio”

于 2012-03-22T20:46:04.367 回答