Viewing 15 posts - 526 through 540 (of 1,114 total)
Sergiy,
You mean , we need to create an index on DOC_RECEIVED_DATE column.
right ?
August 8, 2008 at 5:01 am
Excellent article !:)
Actually you gave a variety of good & tasty food in a single box. If you write more articles like this , it would help very much for...
August 5, 2008 at 8:27 am
Andras,
Thanks a lot for your prompt reply ! So when we think performance we need to use your method, when we think maintanance we can use my method. Am i...
August 4, 2008 at 7:09 am
Andras,
Can you post both the query plan method ?
August 4, 2008 at 6:15 am
Andras,
Wonderful explanation ! It is really very nice !
My requireent is just to check out the input parameter values.
August 4, 2008 at 6:10 am
Andras,
How about my method ?
-----------------------------------
Declare @Str varchar(50),@Cnt int
select @Str = '1,C,C'
select @Cnt = count(*) from
(
select ascii(substring(@Str,1,1))
union
select ascii(substring(@Str,3,1))
union
select ascii(substring(@Str,5,1))
) a
if patindex('[01C],[01C],[01C]',@Str) =1
Begin
If @Cnt = 3
Begin
Print 'Success...'
End
else
Begin
Print 'Failure...'
End
End
---------------------------------------
August 4, 2008 at 5:24 am
Andras,
It is working perfectly. Thanks a lot !
August 4, 2008 at 5:22 am
A small modification in the requirement.
the same character should not repeat twice. if the same character repeat twice then we need to throw the failure error message.
say for example,
0,0,C ...
August 4, 2008 at 5:00 am
Andras,
Thanks for your idea.Your method is working fine.
August 4, 2008 at 4:26 am
Chris knows exactly what the output will be for any pair of numbers entered into his query...
Chris morris,
I do know he knows exactly what the output will be. I...
July 31, 2008 at 4:33 am
Chris,
My point is, just i wanted to confirm which query is performing good.
July 31, 2008 at 4:31 am
Viewing 15 posts - 526 through 540 (of 1,114 total)