Viewing 15 posts - 16,306 through 16,320 (of 18,923 total)
make the tTransToDate the clustered index (and primary if possible), and see how you're query will speed up
.
June 22, 2005 at 8:08 pm
SELECT mile_code,
AVG(Cast(CompAct as decimal(18,2)))
FROM opvw_actPerMile
GROUP BY mile_code
ORDER BY mile_code
June 22, 2005 at 3:00 pm
maybe you'd be better off using DTS bulk insert task, and just start that instead. You wouldn't hog your application for hours that way...
June 22, 2005 at 2:54 pm
I'd say... Did you put additional fail-safe on that switch???
June 22, 2005 at 2:34 pm
Can you tell us what you're trying to do?
June 22, 2005 at 2:32 pm
Unless you really wanna piss off some dbas
.
June 22, 2005 at 2:18 pm
I'll still stick to Noeld's solution... extremely simple and easy to understand.. Mine is just required if you query this field often and need performance.
June 22, 2005 at 2:17 pm
Finally one good utilisation of dynamic sql
.
June 22, 2005 at 2:14 pm
Group by or order by???
Can we see the table definition and some sample data with the expected results from the query?
June 22, 2005 at 2:09 pm
Is sp_renamedb forbiden too?
June 22, 2005 at 2:04 pm
Time to think about it at least...
June 22, 2005 at 2:01 pm
Select DISTINCT o.Name, O.XType from dbo.SysObjects O inner join dbo.SysComments C on O.id = C.id where text not like '%' + O.name + '%'
This isn't 100% effective though.
June 22, 2005 at 1:37 pm
Sorry, misread the question.
June 22, 2005 at 1:36 pm
Why can't you just delete the tables in the right order?
Would be simpler and easy to reuse if needed.
June 22, 2005 at 1:27 pm
Viewing 15 posts - 16,306 through 16,320 (of 18,923 total)