Redian新闻
>
stupid stupid sql server-- what should I do?
avatar
stupid stupid sql server-- what should I do?# Database - 数据库
m*y
1
I'm writing some store procedures to build trace and set status etc. and I
have a problem here.
For example, I want to set some filter that only captures the duration
greater than 5000 but the code
EXECUTE sp_trace_setfilter
@traceid=1,
@columnid=13,
@logical_operator=0,
@comparison_operator= 4,
@value=5000
doesn't work because the last parameter is expecting a bigint!!!
If I define a bigint parameter first like the below and it will work:
declare @abc bigint
set @abc=5000
EX
avatar
w*e
2
Check BOL
上面有解释

【在 m******y 的大作中提到】
: I'm writing some store procedures to build trace and set status etc. and I
: have a problem here.
: For example, I want to set some filter that only captures the duration
: greater than 5000 but the code
: EXECUTE sp_trace_setfilter
: @traceid=1,
: @columnid=13,
: @logical_operator=0,
: @comparison_operator= 4,
: @value=5000

avatar
G*O
3
BOL?

【在 w*******e 的大作中提到】
: Check BOL
: 上面有解释

avatar
w*e
4
Book online

【在 G*O 的大作中提到】
: BOL?
avatar
x*e
5
book online?

【在 G*O 的大作中提到】
: BOL?
avatar
m*y
6
do you have the link?
avatar
w*e
7
ft...go to microsoft website and do some research

【在 m******y 的大作中提到】
: do you have the link?
avatar
m*y
8
why ft? I'm just asking for a link. I always go to microsoft website and do
research if I have a question but it's normal that I miss something there.
avatar
c*n
9
->SQL Server Management Studio ->Help->Index->type your question there
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。