Viewing 15 posts - 50,581 through 50,595 (of 59,091 total)
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 12:51 am
...and provided that the syntax of the query hasn't made it impossible.
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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?
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 12, 2008 at 11:23 pm
robertcaustin (5/12/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 12, 2008 at 11:19 pm
I believe I'd start wtih the Index Tuning Advisor and then tweek from there.
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 12, 2008 at 11:07 pm
Please read the following for the solution to the Running Total (Balance) problem including Grouped Running Totals...
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
--Jeff Moden
Change is inevitable... Change for the better is not.
May 12, 2008 at 10:37 pm
Why did you specify one table per service type instead of 1 table to hold all service types? And if employees suffer no cost, why did you make a...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 12, 2008 at 10:23 pm
Viewing 15 posts - 50,581 through 50,595 (of 59,091 total)