Viewing 15 posts - 56,911 through 56,925 (of 59,101 total)
Sam,
You took a good first step by defragging the DB. Now, about that "slow query" and "insufficient memory" problem... "slow" normally means "resource hog" for CPU, IO, and Memory. If...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 8:31 pm
I believe the training kit will give you a good idea... wait for the training kit before you book the exam...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 8:07 pm
This should do it...
--===== Setup a table to test with
CREATE TABLE #MyHead (AcctNo VARCHAR(10), Month1 INT, Month2 INT, Month3 INT)
INSERT INTO #MyHead (AcctNo, Month1, Month2, Month3)
SELECT 'A', -1, ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 8:05 pm
Since you're trying to print a PDF file, is Acrobat Reader or a print driver for PDF's installed on the server?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:51 pm
The service pack notation revers to Windows.... you have SP4 (8.00.2039) on SQL Server.
There is no bug that does this... it's a setting. SQL Server 2005 is setup for CONCATENATE...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:44 pm
The answer is because you are doing the rounding first and then taking the sum.
By the way... the first letter of SQL stands for "Structured"... you might want to apply...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:38 pm
And what would you like to display if all 3 amounts are <= 0 ?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:32 pm
Why can't you or don't you want to use SET ROWCOUNT @MaxRows???
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:29 pm
Ummmm.... I gotta know.... WHY are you trying to do this in a script?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:20 pm
Heh... at least it sounds the same... I've been called worse ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:15 pm
Another place to look is under "Expanding Hierarchies" in Books OnLine...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:07 am
Sure there is... is Table "A" the only table you need to draw from? Also, can you type up an example of what you'd like the output to look like?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 20, 2007 at 7:05 am
You said there was a correlation between a long running query and the slow down... fix the QUERY. Long running queries are usually IO and CPU hogs. Fix it before...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 19, 2007 at 5:13 pm
Sounds a lot like homework... What have you tried?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 19, 2007 at 5:07 pm
Maybe I'm just missing it... what does the output you listed have to do with the query you listed?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 19, 2007 at 5:05 pm
Viewing 15 posts - 56,911 through 56,925 (of 59,101 total)