Viewing 15 posts - 17,536 through 17,550 (of 18,926 total)
Queries like this often end up as clustered index scan because there's no index that covers all columns.
Can we see the rest of the query and the execution plan?
Also is...
May 31, 2005 at 8:09 am
"A previous post says that dates make good indexes. I tend to disagree."
I can't say that this comment didn't make me jump from my seat. But apprently you are...
May 31, 2005 at 7:30 am
It surely is addictive... I wouldn't call it a drug thaugh.. doesn't have as many side effects!!!
May 31, 2005 at 7:02 am
He's never really off
.
May 31, 2005 at 6:48 am
And what was the solution?
May 31, 2005 at 6:27 am
Since you just stated that you were a beginner, I'll say this part again. UNLESS for much improved performance, this is the type of operation that is better handled...
May 30, 2005 at 3:14 pm
Not sure many would fall for that one...
How many coders do you expect ignore that the table can be aliased?
We could always sugget it to Steve.
May 30, 2005 at 2:04 pm
You can create a function to return the formated date since it's probabely gonna be reused later.
Otherwise it's gonna depend on the rest of the application... You're pretty much...
May 30, 2005 at 12:57 pm
Have you ever used sql server??
May 30, 2005 at 12:28 pm
Btw dates often make very good indexes... maybe not quite as good in this case since there are only 12 values/year but I think it's still better than a char.
May 30, 2005 at 12:22 pm
Hmm, I think that having it as a date is still the best option.
You can recreate the date using the month and year like so :
Declare @Year as int...
May 30, 2005 at 12:20 pm
How is the expiration date kept on the server?
May 30, 2005 at 11:56 am
have you tried moving this code :
delete from rt_edt
where mid=@mid and (src is null or src='')
in here
IF len(@row) <= 16
...
May 30, 2005 at 11:42 am
I would look into the functions: datediff, datepart and dateadd in the books online. This is pretty all you'll be needing.
Any specific problem you need help with?
May 30, 2005 at 11:20 am
Viewing 15 posts - 17,536 through 17,550 (of 18,926 total)