Forum Replies Created

Viewing 15 posts - 3,781 through 3,795 (of 5,685 total)

  • RE: Table Scan

    Rog Saber (3/7/2011)


    From my earlier post:

    "However, just running the primary select statment just then took me 1:17 to return 14,765 rows. But, again, am I barking up the wrong tree...

  • RE: Are the posted questions getting worse?

    Jeff Moden (3/7/2011)


    Kiara (3/7/2011)


    But... but... it's *pretty*! I just wanted to look at it... really! We have such *boring* money over here in the States...

    -Ki

    BWAA-HAA!!! I will be happy...

  • RE: need multiple records filtered for eariliest time

    *facepalm* You're right, of course... what I get for untested code.

  • RE: need multiple records filtered for eariliest time

    So you're looking for something like this?

    SELECT

    t1.*

    FROM

    UnnamedTable AS t1

    JOIN

    (SELECT

    [id],

    MIN( times) AS mintime

    FROM

    UnnamedTable AS t2

    GROUP BY

    [id]

    ) AS drv

    ONt1.id = t2.id

    and t1.times = t2.mintime

  • RE: Table Scan

    Thanks, so you're averaging about 8 rows of dates per combinations, ~12% of data... yeah, not enough to force the seek and lookup.

    Hm, ~500 Car_inits...

    Yeah, my apologies, but there's not...

  • RE: Help Required

    I just took a poke around the SSIS interface and in Data Flows found a tool that my eyes have glided over repeatedly... amazingly enough, called Pivot. 🙂

    I have no...

  • RE: Table Scan

    Alright, a little review of your multiple indexes show most of them have the same leading edge (trip_status), and then different incarnations of secondary seeking columns. Sadly, none of...

  • RE: Non-Clustered Indexes - Need some advice

    Rich Yarger (3/7/2011)


    2. I actually did convert one of this reports with JOINS instead of the old school coding, but then one of my instructors told me that it wasn't...

  • RE: Table Scan

    Rog Saber (3/7/2011)


    No, unfortunately, we really don't have an in-house DBA - hence my trying to get some insight here. We have a person that 'runs' things for us but...

  • RE: Non-Clustered Indexes - Need some advice

    *facepalm*

    Rich, introduce your Report Writer to the CREATE PROC command. He may love you forever... the rest of your developers... well... once you've taken Gail's advice, I live in...

  • RE: Table Scan

    Rog Saber (3/7/2011)


    No, I am just a developer w/ dbo. Maybe that makes a difference?

    Yeah, you can't see what's happening in another spid unless you've got higher level access.

    Have you...

  • RE: Time difference between multiple rows

    Note in cte that there's the ROW_NUMBER() component. Inside there, is the PARTITION BY. That Partitioning will control how it organizes the data. Take a look at...

  • RE: Table Scan

    You only get one row when doing a select * from master..sysprocesses? You are SA on the system, right?

  • RE: Table Scan

    Rog Saber (3/7/2011)


    "Also, during the day, run this query and check the wait_state for the SPID and see what you get. It'd help to know why it thinks it's stuck....

  • RE: I need get an empty record

    I'm having a similar difficulty as Steve.

    Are you looking to get a list of every entry in ems_cliente, and then get the counts as described by your where clause?

Viewing 15 posts - 3,781 through 3,795 (of 5,685 total)