Viewing 15 posts - 58,651 through 58,665 (of 58,880 total)
This could be converted to a UDF to replace GETDATE() with a date for the month to find the last business day of...
The time included in the date takes you...
March 2, 2005 at 1:57 am
Nice job and you got right to the point. Great comparison example against derived tables. My hat's off to you.
March 2, 2005 at 1:16 am
Concur... a world of hurt lays ahead for those using Unique Identifiers in a casual manner.
... and, I agree, the customer code is the unique number to be used as...
February 28, 2005 at 9:27 pm
Like I said, you have to give the hint "FIRE_TRIGGERS" to get triggers to fire during a bulk-copy or bulk-insert. If you do that, then the inserts get "logged" in...
February 28, 2005 at 9:02 pm
>"1000 Points whose values are coming after about every second"
Does this mean that the table grows by a thousand rows every second? If so, some well designed indexes would help. ...
February 28, 2005 at 5:54 am
Not unless you specify the FIRE_TRIGGERS hint which also causes the operation to become fully logged.
February 27, 2005 at 2:02 pm
Usman,
Charles is right, an IDENTITY column might help to guarantee row uniqueness is this case. However, whether you have an IDENTITY column or not (sometimes can't change a table because...
February 26, 2005 at 11:41 am
Like I said, "Rather than using a view, ..."
February 16, 2005 at 6:22 pm
Don't use @@IDENTITY which can be tricked by triggers... use SCOPE_IDENTITY() instead.
Always assign values captured in @@ROWCOUNT and @@ERROR immediately after the SQL that you want to check. You can...
February 10, 2005 at 7:54 pm
Very Nice article. Covered a lot of ground and it's a pleasure to actually see commented formatted code. I've seen a method to write to text files using linked servers...
February 7, 2005 at 10:18 pm
Yup... I know the feeling... you should see the one at work. Glad to help.
January 28, 2005 at 4:22 am
Dunno, maybe I missed something....
SELECT
E.PAYTYPE
, SUM(CASE datepart(dw,E.TimeDate) WHEN 2 THEN E.Hours ELSE 0 END) as Monday
, SUM(CASE datepart(dw,E.TimeDate) WHEN 3 THEN E.Hours ELSE 0 END) as Tuesday
, SUM(CASE datepart(dw,E.TimeDate)...
January 27, 2005 at 7:59 pm
It's a bit difficult to believe that you would ever have a NULL StartDate with a valid EndDate. Normally, it's the other way around. But, no worries...
For NULL StartDates, I...
January 27, 2005 at 7:49 pm
Antares,
I apologize if the time lag between our posts caused this...
I had reposted a solution as follows...
STUFF(STUFF(REPLACE(STR(Run_Time,6),' ','0'),5,0,':'),3,0,':')
The original question was how to convert the Run_Time column of...
January 27, 2005 at 6:56 am
Viewing 15 posts - 58,651 through 58,665 (of 58,880 total)