In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or hav...

SQL用PROFILER时产生的权限问题。不用大开到SYSADMIN的权限吧。

用以下方法完美解决。只给TRACE权限。

 

SQL Server Profiler and ALTER TRACE permission

Yesterday, I wanted to use SQL Server Profiler to check what was happening on the database side of an application I am developping. However, SQL Srever Profiler was giving me the following error message:

In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.

In order to resolve this, you need to issue the following SLQ query in the master database:

GRANT ALTER TRACE TO username

Replace username by the username you want to use to access the database in SQL Server Profiler.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值