Viewing 15 posts - 166 through 180 (of 284 total)
Ok, fine. If you don't want to take the trouble to tweak it, I guess I will. It is my code, I suppose, so who better?
Here is a slight tweak...
October 23, 2007 at 3:38 pm
On my server it means Monday, not Sunday.
That's fine, use the values that match your server or DateName() instead. Remember, these routines were developed to meet in-house needs. They were...
October 23, 2007 at 10:08 am
Sergiy, wouldn't it be possible to have a small table of only hollidays, and if @DateEnd falls on one of those days just add 1?
Here are a couple of...
October 22, 2007 at 8:08 pm
DECLARE @fl AS FLOAT
Just change float to decimal (or numeric). Internally, floats and doubles are maintained in an entirely different format from decimals and numerics. That's why you don't get...
October 17, 2007 at 7:39 pm
I tried using "& nbsp;", as well as html tags such as <pre> (what I had been using). They are ignored.
Wait. Notice the space before the "nbsp;" above. The ampersand...
October 12, 2007 at 11:03 am
SELECT U1.UserNew
    ,D.TelNumber
    ,D.ChangeDate AS DeviceDate
    ,D.IMEInew
Ken,
How do you format the code in your post? I can't get this new forum tool to work for me.
October 10, 2007 at 1:24 pm
It sounds like you have actual column "Fast", "Slow", etc. in different tables and you want a total count and summation from all those tables. Here, with just a few...
October 10, 2007 at 12:55 pm
I doubt Microsoft will deprecate select * because, like it or not, it is part of the SQL standard. I agree with dots67's comparison between select * and goto. It...
October 9, 2007 at 11:26 am
I wouldn't make an alpha-numeric primary key... they're slow and difficult to maintain.
Why don't you just use an INDENTITY column and a Country column?
Alpha or alpha-numeric keys are not significantly...
October 9, 2007 at 11:01 am
If you have a Number or Tally table, you can generate a list of time values very easily. My Tally table column is Num and the values start at 0....
October 8, 2007 at 12:12 pm
select 1 where getdate() <= convert(datetime,convert(varchar(10),'01/01/2008',103),103)
Why do all the converting: char(10) to varchar(10) to datetime? And why lock yourself into a specific format? Let the system perform an implicit conversion...
October 5, 2007 at 11:05 am
Oh, sorry. :blush: I forgot to mention that it would seem to work because @Result is left at the correct answer from the method that came before it. So when...
October 4, 2007 at 10:21 am
Sorry, Jeff. You got the third method to operate a little faster by removing the setup just before entering the loop. This is a crucial step. Without it, the method...
October 3, 2007 at 11:00 am
Here's what I used:
-- Initialization common to both methods.
Declare @original decimal( 38, 12 ),
@Result decimal( 38, 0 ); ...
October 2, 2007 at 12:20 pm
... and what about the EndDates that are NULL? 😉
I answered that already. I defined my test table with a nullable datetime field. However, the OP seemed to be...
October 2, 2007 at 10:27 am
Viewing 15 posts - 166 through 180 (of 284 total)