Viewing 15 posts - 17,641 through 17,655 (of 18,926 total)
Another neat trick that you might like :
select id, txtData From Yourtable order by case txtDate when 'html' then 0 else 1 end
May 25, 2005 at 1:27 pm
If you, as I hope, pursue this solution, make sure that the date column is indexed in the activity table. The best case would be to have it be...
May 25, 2005 at 1:02 pm
First column is the total count, 2nd is the type of the object (could be the activity), third is the month is was created (or month of the activity).
May 25, 2005 at 12:59 pm
Please run this in query analyser to see the resultset it presents :
Declare @StartD as datetime
declare @EndD as datetime
declare @Year as int
set @Year = 2004
set @StartD = dateadd(YYYY, @Year...
May 25, 2005 at 12:46 pm
Yes ron k and again this will scan only 1 month at the time. Unless this is exactly what you (kristin) want it to do then I would urge you...
May 25, 2005 at 12:42 pm
Let's just hope for the best untill then...
May 25, 2005 at 12:39 pm
That's what I was about to finish typing
.
May 25, 2005 at 12:38 pm
I guessed that he would consider doing this himself. Cause if he didn't I wouldn't want be working with him anyways
. (not...
May 25, 2005 at 12:34 pm
Hey ron... I guess it's starting to sink in now ![]()
"where reportsentdate >= @StartD and reportsentdate < @EndD"
May 25, 2005 at 12:10 pm
Even with a static number, that number can always be changed later on in the lifetime of the application. That's why I preffer doing this work with 2 simple loops...
May 25, 2005 at 12:06 pm
It's simple really, but the fact is that it's much simpler to run a single query than to run 12. My 2 count() were mere exemple for the aggregates that...
May 25, 2005 at 12:04 pm
Maybe someone has a better solution... but providing that this is for administrative work :
EXEC master..xp_cmdshell 'dos command to move file here', no_output
May 25, 2005 at 11:54 am
R u talking about an actual file or a text column?
May 25, 2005 at 11:48 am
I think this will do all you want in a single query :
Declare @StartD as datetime
declare @EndD as datetime
declare @Year as int
set @Year = 2004
set @StartD = dateadd(YYYY, @Year...
May 25, 2005 at 11:37 am
Viewing 15 posts - 17,641 through 17,655 (of 18,926 total)