Viewing 15 posts - 48,001 through 48,015 (of 49,571 total)
Whatever you do, don't lie to them. If you get asked a question on an area you're not familiar with, tell them that you're not that familiar with it. If...
December 20, 2007 at 9:46 am
Good to know. Thanks for that.
I tested with brackets or with quotes, not with both.
December 20, 2007 at 9:45 am
Robert Brown (12/20/2007)
December 20, 2007 at 9:37 am
SELECT Data_ID, DateTime, Batt_Vltg
FROM
tableName
WHERE
DateTime = DATEADD(hh,4,DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0))
Doing conversions to Varchar to trim the time off a date is inefficient and CPU intensive.
December 20, 2007 at 9:37 am
To add to that
IO contention from different file placement
Network settings (full/half duplex, auto vs specified speed)
CPU contention with other apps running on the server (if any)
Have you checked what's running...
December 20, 2007 at 4:32 am
Can you use a DTS package? iirc, the Excel source allows skipping of rows.
December 20, 2007 at 4:09 am
Could you perhaps delete this thread please, as it's in completely the wrong forum.
There's no need to post in multiple forums, the regulars read all the forums
December 20, 2007 at 3:37 am
Why is the group by there at all? You aren't doing any form of aggregation that could require a group by.
If you're trying to eliminate duplicate rows, rather use Distinct.
December 20, 2007 at 12:39 am
How do you find the duplicate rows in a table with Integer ID and a varchar name fields?
Well, that depends on whether its the name that's duplicated, or the name...
December 19, 2007 at 11:53 pm
Jeff Moden (12/19/2007)
December 19, 2007 at 11:21 pm
Jeff Moden (12/19/2007)
December 19, 2007 at 11:18 pm
Not sure. I'll have to check. (Tomorrow. Is bed time here. I shouldn't post this late at night)
Since the like determines that the first character is between 0 and 9,...
December 19, 2007 at 2:20 pm
You don't need the temp table. (unless you're using it for performance reasons)
WITH ALevel (ConsultantID, AchieveLevel, AchieveTitle, PeriodEnddate) AS
(
SELECT ConsultantID, max(AchieveLevel), AchieveTitle, PeriodEndDate AS DirectReports
FROM Volume
WHERE ConsultantID = @ConsultantID
GROUP BY...
December 19, 2007 at 2:17 pm
Edited for correctness.
And if there's an index on government_id, the like might allow the optimiser to use it for a partial scan, the len (since it's a function on...
December 19, 2007 at 2:02 pm
You don't. But one's time is, unfortunately limited, and a more productive use of one's time may be to fix the things that are known to be broke, before investigating...
December 19, 2007 at 1:52 pm
Viewing 15 posts - 48,001 through 48,015 (of 49,571 total)