Forum Replies Created

Viewing 15 posts - 3,601 through 3,615 (of 5,685 total)

  • RE: SQL Select causes 100% CPU

    I reformatted this to use aliasing and cleaned up the where clause to reduce repetitive logic and try to clean up the parenthentic pathing. Hopefully it'll help others to...

  • RE: SQL Select causes 100% CPU

    Grant Fritchey (3/23/2011)


    As long as you're running this function on the column, you're guaranteed table scans: CONVERT(char(10), dbo.Notes.FollowUp, 111)

    Unfortunately, as does this:

    AND (NOT (dbo.[Active Patients].Status LIKE N'%0 - In House%'))

    There's...

  • RE: Error while copying from View to Table (1M+ Records)

    Your tempdb is suiciding, it doesn't have enough room to grow large enough for whatever subtables the plan has decided it needed. My guess is because of the Distinct...

  • RE: Are the posted questions getting worse?

    GilaMonster (3/23/2011)


    Jan Van der Eecken (3/23/2011)Craig, 'Inventing a Lane' did not originate in Boston, it was first registered as a purely South African invention. Our "communal" taxis (can't call them...

  • RE: Bad Performace with Exec and a Procedure

    mtillman-921105 (3/23/2011)


    I have a procedure with a handful of parameters which takes 2 seconds to run on a data warehouse. But if I simply call the same procedure with...

  • RE: Developer making me look ignorant

    opc.three (3/23/2011)


    2. Use EXEC...AT:

    Another technique I have found useful is to use the EXEC...AT expression because it let's you use a variable and you can still pipe the results into...

  • RE: Index Space Table Space Ratio

    suri.yalamanchili (3/23/2011)


    Thanks for the reply.

    I understand the metrics would be different for both the instances (OLTP vs OLAP)

    Is there a range of good metrics for OLTP is what I trying...

  • RE: table is slow

    I'm with Grant, 2000 rows is relatively tiny.

    Got LOB data in this? Is the data stored on your local hard-drive or a server? How long is 'long' -...

  • RE: 'IS NOT NULL' in LEFT OUTER JOIN

    You might run this first:

    (SELECT CONVERT(varchar(10), MAX(ACCOUNTING_DATE), 101) AS Expr1

    FROM DB1.dbo.Table2

    WHERE ACCOUNTING_DATE <= GETDATE())

    And drop that to a variable since you're not using any row-level interaction.

    You've gone through a...

  • RE: Are the posted questions getting worse?

    Hm, an anthology of sci-fi and fantasy hookers. Anyone else have that list of books to read that just gets longer... and longer... and longer...? 😀

  • RE: Deadlock on a single resource ?

    Jimble,

    Is this everything? The final component of the graph looks like it's a 3 way deadlocking but only spids 67 and 84 have descriptions above, and 60 seems like...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (3/23/2011)


    Looks like everyone behaved while I was out yesterday. Good job, everyone

    Errr, crap, you're back fast. Back in a bit, I've got some mass...

  • RE: Are the posted questions getting worse?

    Jack Corbett (3/23/2011)


    I'm not going to make the duck tour, but I am planning on getting into Boston somehow for the dinner. I hate driving in any city and...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (3/22/2011)


    Oh, hey, completely non-SQL related link:

    If you like superheroes, you will like "Grayson" (They created this trailer with an 18,000 dollar budget).

    http://www.youtube.com/watch?v=XiZuvJ48MZ0

    Holy Crap... that's like 10 hours of...

  • RE: How often do you really need dynamic t-SQL?

    I'm on the fence on catch-all queries, and yes, I know the optimizer problems. It doesn't mean I like dynamic SQL in general.

    I have a simple rule when it...

Viewing 15 posts - 3,601 through 3,615 (of 5,685 total)