Viewing 15 posts - 56,881 through 56,895 (of 59,072 total)
Thanks, SW...
Peter is correct, though... if all of the values for a given account number are <= 0, the account won't print (dunno if you want that or not). Peter's...
February 21, 2007 at 5:10 pm
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...
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...
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, ...
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?
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...
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...
February 20, 2007 at 7:38 pm
And what would you like to display if all 3 amounts are <= 0 ?
February 20, 2007 at 7:32 pm
Why can't you or don't you want to use SET ROWCOUNT @MaxRows???
February 20, 2007 at 7:29 pm
Ummmm.... I gotta know.... WHY are you trying to do this in a script?
February 20, 2007 at 7:20 pm
Heh... at least it sounds the same... I've been called worse ![]()
February 20, 2007 at 7:15 pm
Another place to look is under "Expanding Hierarchies" in Books OnLine...
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?
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...
February 19, 2007 at 5:13 pm
Sounds a lot like homework... What have you tried?
February 19, 2007 at 5:07 pm
Viewing 15 posts - 56,881 through 56,895 (of 59,072 total)