Viewing 15 posts - 50,566 through 50,580 (of 59,078 total)
The only thing that might beat the method in the article would be to maintain a separate table with a list of accounts and the current balance (1 row each)...
May 13, 2008 at 8:14 am
quortex (5/13/2008)
have read the suggested article and although it is very informative it is geared towards calculating the total after the data is populated.
That's EXACTLY what you are doing...
May 13, 2008 at 8:05 am
Why not just ignore the cost for Employees since they suffer no cost? That would cut the number of tables in half and also keep you from having to...
May 13, 2008 at 7:42 am
Peso (5/13/2008)
...
I mean no harm in posting the results. I just find it interesting that different methods and approaches to this problem have significantly...
May 13, 2008 at 7:39 am
Michael Meierruth (5/13/2008)
I hope you were able to use the SS 2005 solution.When limited to SS 2000, our queries really start to slow down after a while.
Try the Peso 3...
May 13, 2008 at 7:33 am
emamet (5/13/2008)
Maybe we can summarise by saying that integrated CLR is the perfect solution...but that we are still looking for the problem 😛
Just couldn't have said it any better than...
May 13, 2008 at 7:11 am
Heh... can't wait for the mess folks are gonna make in 2k8 with the separate DATE and TIME datatypes...
May 13, 2008 at 12:51 am
...and provided that the syntax of the query hasn't made it impossible.
May 13, 2008 at 12:48 am
Cenk OZPAY (5/13/2008)
I have seen some performance advantages when used in scalar functions. CLR can be used when there is no corresponding T-SQL functionality like splitting a string by a...
May 13, 2008 at 12:45 am
Sergiy (5/12/2008)
I would suggest:
1) create simple ReportTable
(
SeqNo smallint NOT NULL PRIMARY KEY,
ReportString varchar(8000) NULL
)
2) Populate this table with lines to be reported, lines...
May 12, 2008 at 11:35 pm
If you really want it in a single query, create a function using the same technique. Your turn... why does it have to be in a single query?
May 12, 2008 at 11:25 pm
Last half of the following article tells you how to do a "split". Just replace the ? with a \ in the URL, remove the first 7 characters, and...
May 12, 2008 at 11:23 pm
robertcaustin (5/12/2008)
May 12, 2008 at 11:19 pm
I believe I'd start wtih the Index Tuning Advisor and then tweek from there.
May 12, 2008 at 11:16 pm
First, the function you have uses a cursor/while loop and it's going to be relatively slow. See the following for a couple of tips how to do it another...
May 12, 2008 at 11:07 pm
Viewing 15 posts - 50,566 through 50,580 (of 59,078 total)