Viewing 15 posts - 1 through 15 (of 34 total)
Out of curiosity, what if you tried a version that doesn't use "if exists". Maybe something like this...
declare @exists bit=0
select top 1 @exists=1 From BotCBO.vwClovekStrings_PrZk Where ClovekString...
September 12, 2019 at 4:50 pm
I could, but there are other things stored along with the hash. Things like when the entry was created, updated, number of cache hits, etc. So I would...
April 7, 2015 at 6:23 pm
Thanks Igor, however I was looking for a solution. I was able to put the results into a table first and then use that table, just like you...
March 15, 2014 at 6:08 pm
The previous solution works great on small ranges, however it doesn't handle larger datasets and ranges.
For example if the records are changed to something like
...
February 7, 2014 at 9:45 am
Not yet. That's what I'm doing right now. I'm executing different parts independently to help understand what you did. If you can break down how you solved it...
February 6, 2014 at 11:54 am
I think there's a potential issue with that idea. The second session could see an item in the cache but the first session hasn't finished and written the result...
September 20, 2013 at 1:38 pm
True, that would solve the issue of the duplicate insert. But that also means the expensive part would need to be run twice. Since the first session...
September 20, 2013 at 1:19 pm
Right, that's my question. Why are there 2 processes (i.e. more than 1 SPIDs)?
What's happening is a single web service call is turning into 2 identical SP calls (2...
August 2, 2013 at 10:59 am
Thanks! I must have total spaced. I should have know why that was happening.
I liked the idea with padding with spaces but if I tried to use
July 17, 2013 at 10:52 pm
The type on the timestamp column is datetime2(2)
June 6, 2013 at 10:27 am
Yes, I did take a look at those articles. What make this one more difficult is there are 4000 Codes and each Code could appear anywhere from Code1-Code20. ...
July 26, 2010 at 1:01 pm
I'll give it a try...
I just tried it and I got this error...
Msg 8115, Level 16, State 2, Line 4
Arithmetic overflow error converting expression to data type int.
The statement has...
June 23, 2010 at 10:53 am
Wow, that did it. The query now takes about 1ms to complete. Nice!!
Here are the results that you asked for...
gridrows
1810
gridlowhighrows
84040840484040000084050000037696
84090840984090000084100000037366
0010000037162
99200992099200000099210000033111
84110841184110000084120000031619
98000980098000000098010000028291
84400844084400000084410000028048
84070840784070000084080000027147
84060840684060000084070000026154
98050980598050000098060000025176
Thanks for the help!!
June 23, 2010 at 8:11 am
Viewing 15 posts - 1 through 15 (of 34 total)