Forum Replies Created

Viewing 15 posts - 48,001 through 48,015 (of 49,571 total)

  • RE: Help! I have an interview for a DBA job tomorrow !

    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...

  • RE: passing GUID to a stored procedure

    Good to know. Thanks for that.

    I tested with brackets or with quotes, not with both.

  • RE: Performance Problem when using Caching

    Robert Brown (12/20/2007)


    We have two identical copies of the database on the same server (confirmed with SQL Compare) and are using SQL Server Query Notifications to cache data in the...

  • RE: Query for specific records each new day

    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.

  • RE: varience in performance

    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...

  • RE: Skip n rows while importing from Excel Sheet...

    Can you use a DTS package? iirc, the Excel source allows skipping of rows.

  • RE: Skip n rows while importing from Excel Sheet to SQL Server 2000 table.

    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

    Thread continued here

  • RE: Each GROUP BY expression must contain at least one column that is not an outer reference.

    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.

  • RE: The T-SQL Test

    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...

  • RE: how to tune this query

    Jeff Moden (12/19/2007)


    I didn't know how long it originally took and, like the bumble bee who doesn't know it's not supposed to be able to fly, I rewrote it... it...

  • RE: Like Operator.

    Jeff Moden (12/19/2007)


    BUT... take a look at the execution times and the CPU usage... the Index Seek is twice as slow as the Index Scan in this case (3 times...

  • RE: Like Operator.

    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,...

  • RE: Return a single row per

    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...

  • RE: Like Operator.

    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...

  • RE: how to tune this query

    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...

Viewing 15 posts - 48,001 through 48,015 (of 49,571 total)