Viewing 15 posts - 796 through 810 (of 1,086 total)
You are summing and counting. If you have multiple records where your CASE statement can be either 1 or 0, this may cause problems.
You may want to do an...
June 1, 2005 at 3:23 pm
No ideas on why this is displaying in this fashion for me? It is rather perplexing...
June 1, 2005 at 11:47 am
I believe CASE assigns a value, while IF is flow control using equalities/in-equalities. That may be why that does not work.
(I'm sure you already know, GOTO can lead to...
June 1, 2005 at 11:45 am
I should have specified that I already went through all iterations, (e.g. 38,5 - 38,10 - 38,15 - etc.) of those settings. I just posted my last attempt, not even thinking...
May 31, 2005 at 4:06 pm
I cannot produce these results. Maybe my settings are goofy.
DECLARE @val varchar(200)
SET @val = '-3.16E-05'
SELECT CAST( CAST( @val AS float) AS decimal(38,37))
SELECT CONVERT( decimal(38,37), CONVERT( float,...
May 31, 2005 at 2:15 pm
Thanks Nicolas. I understand those. I misread the initial question and thought this was a date and not seperate fields for each part of a date. That is why I...
May 27, 2005 at 1:08 pm
I've written something that has this warning as well. I only see the warning in Query Analyzer and it does not affect any application. As with yours, I know mine will...
May 27, 2005 at 10:48 am
Can you break up your steps and return @@ERROR?
BOL reference Access databases for this error. It does mention you need to be the Admninistrator. I am assuming you already...
May 27, 2005 at 10:40 am
I tried that too Lowell, but my setting in Query Analyzer yielded: 5/27/2005 12:18:47 PM.
That is why I suggested a more, (shall we say) convoluted answer.
May 27, 2005 at 10:34 am
This may not achieve what you want, but I am guessing this is for display reasons.
SELECT CONVERT( varchar, CONVERT( datetime, '1/1/2005 09:00:00 AM'), 101) + ' ' + CONVERT(...
May 27, 2005 at 10:10 am
I'm bad about remembering error coding when I try and answer a question quickly.
Glad it helped.
May 24, 2005 at 2:59 pm
Thank you guys! I was born with an extra thick skull, so it usually takes two or three hammers to get me to understand.
May 24, 2005 at 7:38 am
BOL has return codes of 0 or 1. I was messing with this and could not get it to work.
CREATE TABLE #SpaceUsed( database_name varchar(200),
database_size varchar(10),
[unallocated...
May 23, 2005 at 3:28 pm
Thanks Ron. I had seen that, but it just wasn't specific enough for me as to whether it would make a difference in the results.
---------------------------------------------------------------------------------
Frank, I had to use...
May 23, 2005 at 3:17 pm
Thanks. I figured that, but I could find no documentation.
May 23, 2005 at 2:10 pm
Viewing 15 posts - 796 through 810 (of 1,086 total)