Forum Replies Created

Viewing 15 posts - 4,006 through 4,020 (of 5,841 total)

  • RE: Free Advice or Free Consulting

    >>they're a last resort

    No, forums are NOT the last resort! If you can't figure it out for yourself, don't have someone at work to assist, can't get someone to...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How do you count number records added in recent period

    I don't think you need a 'moving aggregate'. You simply need to count emails per user for a period:

    select userid, count(*)

    from emaillog

    where sendtime less than 60 minutes ago

    group by...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Partial Clustered Index Seek then Merge Join...

    For some reason I cannot view the plan, but you are joining 12 tables (hopefully none of those are views), so any aberation in the rowcount estimation by the optimizer...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Free Advice or Free Consulting

    Good stuff - too bad it won't actually be read by any of those who might need it. 🙁

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: When Should a Table be Partitioned?

    Greg Roberts-134214 (5/12/2010)


    2) I cannot change the structure of the production database. I have a nightly ETL that migrates the data from production to a reporting database.

    1) I...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: When Should a Table be Partitioned?

    1) I would like for you to tell me exactly why you think you need/want partitioning, and also what you think you will gain by partitioning. Most people think...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Overlapping indexes

    I have done this evolution for numerous clients. I use sp_helpindex3 to generate the information on all indexes and then use my Mark I calibrated eyeballs and Excel to...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    >> WHERE NOTETYPES.Associated_Department_ID IS NULL OR OPERDEPTMBR.Operator_ID = @Operator_ID

    That type of WHERE clause is HORRIBLE from a performance standpoint. Our own Gail Shaw has a very nice blog post...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    My statement above applies to TVFs also, at least ones that aren't inlined by the optimizer.

    I will add that as a consultant in the past 3-4 years I have probably...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    The best plan choices would likely be made (over many iterations with many different values in the delimited string) by putting the values into a temporary table first and then...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL server memory usage

    Give a qualified professional a few hours access to your system for a performance review. I think you would be surprised what would be found - and you could...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Version Control your Stored Procedures

    Or you can simply use ApexSQL Edit, which has some very spiffy built-in source code control functionalilty - among many other features.

    Disclaimer: I have a close relationship with Apex,...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Improving Performance of Cross-Partition Queries

    Hell, I just installed my first copy of SQL 2008 (NOT R2) on my laptop just two months ago!! I have never had a version of 2008 R2 on...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Improving Performance of Cross-Partition Queries

    Paul White NZ (5/5/2010)


    TheSQLGuru (5/5/2010)


    Wouldn't APPLY also force a nested loop iteration over each partition and thus also be slow?

    Yes to the loop join - but that's exactly what is...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Improving Performance of Cross-Partition Queries

    Solomon Rutzky (5/5/2010)


    aeternam (5/5/2010)


    Using a while loop in combination with a table variable shouldn't, in general, be the best performing option.

    How would this query perform:

    SELECT <something>

    FROM <the partitioned table>

    WHERE etp.PartitionID...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 4,006 through 4,020 (of 5,841 total)