Viewing 15 posts - 53,836 through 53,850 (of 59,065 total)
No, no... not that, Serqiy... I understand that.
I meant this type of accuracy when I said you better know what you're doing...
CREATE TABLE #Test(MyFloat FLOAT(53), MyDecimal DECIMAL(38,37))
INSERT INTO...
November 28, 2007 at 10:15 pm
At occasional peroids we seem to suffer a very high number of SQL Deadlocks and performance issues.
It's not the disk... it's a chunk or two of code somewhere. Heh......
November 28, 2007 at 9:13 pm
I guess my thought would be - why does it have to be just ONE person's issue?
That's the real key... it shouldn't be. You've hit the nail on...
November 28, 2007 at 9:01 pm
Heh... your welcome...
spt_values table is the "original" Tally table... it goes from 0 to 255 in 2k and I think it goes to 1023 or 1024 in 2k5.
November 28, 2007 at 8:58 pm
A wise friend of mine once said, "A single test is worth a thousand calculations and speculations". Another wise friend of mine said, "A Developer must not guess... a...
November 28, 2007 at 8:50 pm
The conversion caused the radius value to lose precision:
Heh... who cares about the precision... using FLOAT, you've lost some accuracy. Think not? Try this...
DECLARE @Radius FLOAT(53)
...
November 28, 2007 at 6:47 pm
Perfect. Thanks for the feedback.
Just to be sure... you know what the "Tally" table is and how to build one?
November 28, 2007 at 3:05 pm
Similar thing can be done in SQL Server...
SELECT Number AS CharNum, CHAR(Number) AS Character
FROM Master.dbo.spt_Values
WHERE Type = 'P'
AND Number <...
November 28, 2007 at 3:00 pm
Interesting. Can you post the code that you used to perform your test?
Now, you sound like me 😀 and, dang it... ya beat me to it 😛
November 28, 2007 at 2:49 pm
Outstanding, Edogg! Thank you for the feedback!
November 28, 2007 at 2:38 pm
By the way... your code seems to indicate that the Grade_ID is stored as a VARCHAR. If it's trully a numeric throughout, you may want consider changing the datatype...
November 28, 2007 at 2:36 pm
This should do it...
UPDATE Grade
SET Grade_Name = CASE
WHEN Grade_ID = '35800'
THEN 'TRANSCOPY' + CHAR(153) --™
...
November 28, 2007 at 2:33 pm
Not trying to be a smart guy here...
What did you learn by this?
November 28, 2007 at 2:13 pm
Jpotucek (11/28/2007)
exec sp_helpdb comes...
November 28, 2007 at 2:03 pm
Viewing 15 posts - 53,836 through 53,850 (of 59,065 total)