Forum Replies Created

Viewing 15 posts - 3,136 through 3,150 (of 18,926 total)

  • RE: The Mystery of Transaction Log Size Growth???

    4 TB in 1 table?

    Missed the period! 🙂

  • RE: deleting autocreated statistics?

    tx.

    Only 7K stas to drop. Yes I said 7K.

    😀

    I'll need to analyze this a little further!

  • RE: Composite key Vs Surrogate key

    I don't see anything for column b here?

    Loner (8/22/2011)


    Yes it is the cluster key.

    The bigint actually is a time field (millisecond) calculating from 1970/01/01.

    The where clause of the main...

  • RE: *= non ansi join

    GilaMonster (8/22/2011)


    Are you absolutely sure it's a table? Because there's no join at all in that procedure, it's valid for SQL 2005/2008.

    +1

    Or maybe a synonym?

    Trigger is my default answer to...

  • RE: Bad performance of a query

    On the base table(s).

    An indexed views materialize the results of the view and must be kept up to data every time you do dml on the base table(s).

    And it's a...

  • RE: deleting autocreated statistics?

    Yes plz.

  • RE: Composite key Vs Surrogate key

    Then why is the CI not a,c, then b?

  • RE: qyery taking an hour

    Grant Fritchey (8/22/2011)


    No, an hour seems very excessive for that query.

    I just did a speed test on my prod server.

    Everyone's out to lunch and we have a very decent san.

    It...

  • RE: qyery taking an hour

    SKYBVI (8/22/2011)


    when i execute that query on my server, it says

    User doesn't have permission to run htt query

    Why does it tell so when i already logged in as sa??

    Some...

  • RE: Problem with getting the count of records when using group by and having

    SELECT COUNT (*) FROM (

    select MclId from vDCRDoctordetails

    where LocationId=121 and month(DcrDate)=4 and year(DcrDate)=2011

    and UserId=121 group by MclId having count(MCLId)=1

    ) dtGrpBy

  • RE: deleting autocreated statistics?

    I'd still like a demo script if you have one laying around :Whistling:

  • RE: Query to list all the primary and unique keys

    SELECT * FROM dbo.sysobjects WHERE XType IN ('PK', 'UQ')

    Please note that there's a difference between unique constraint and unique index. UI won't be in the objects table.

    Re-edit 18K 🙂

  • RE: Huge transaction log backup

    GilaMonster (8/22/2011)


    Ninja's_RGR'us (8/22/2011)


    Let's say that you run update stats but the distribution didn't really change, nor the min / max values.

    Do you still get a plan recompile at next run?

    Yes.

    Getting...

  • RE: tricky query

    GilaMonster (8/22/2011)


    Ninja's_RGR'us (8/22/2011)


    GilaMonster (8/22/2011)


    Ninja's_RGR'us (8/22/2011)


    P.S. when something runs 10X slower than something else, the plan is NOT the same... or should not be the same.

    Unless there's major blocking/waits on the...

  • RE: tricky query

    So you got the next E = MC2 blatantly visible in your query (not the output, just the query)?

    I've never seen a query so special that it couldn't not be...

Viewing 15 posts - 3,136 through 3,150 (of 18,926 total)