Viewing 15 posts - 16,066 through 16,080 (of 18,923 total)
Let us stop guessing, post the actual code and some sample data so that we can see what's really going on.
June 29, 2005 at 8:18 am
In what circumstance??? The answer is right, it ALWAYS DEPENDS.
June 29, 2005 at 8:15 am
Surely, a scan is bad but n scans is n times worse...
Didn't read the whole script posted, so there might have some more optimizations to do on it.
June 29, 2005 at 8:13 am
That too, but I preffer doing the sum(case) approach... but maybe it's not important.
June 29, 2005 at 8:11 am
it would look something like this :
dateadd(D, 0, Datediff(D, 0, DateCol)) = DateCol
June 29, 2005 at 8:01 am
Can you provide all the informations then??
If you post the original query then I might be able to provide more info.
June 29, 2005 at 7:55 am
That could continue for a while... so I'll stop after this one
.
June 29, 2005 at 7:46 am
Same query, usable for any amount of cities :
select prod_id
from dbo.prod_cities
where city_id in (207,208)
GROUP by prod_id
having count(*) = 2 -- number of cities in the in list
But where do...
June 29, 2005 at 7:38 am
Here's the query you requested :
Select
dtCC.Tname as TableName
, dtCC.CName as ColName
, dtCC.XType
, dtCC.IsComputed
, dtCC.Text
, C.Name AS ColUsed
FROM
(
Select
O.Name as TName
, C.name as CName
, O.XType
,...
June 29, 2005 at 7:32 am
Nobody came up with a better solution because it's not something that should be run on the server(s). However, this is a case where you have no choice. But...
June 29, 2005 at 7:17 am
The question really is, does that column need an index (or unique constraint)? If not then it's a complete waste of resources, but if it does the you need...
June 29, 2005 at 7:13 am
Viewing 15 posts - 16,066 through 16,080 (of 18,923 total)