Forum Replies Created

Viewing 15 posts - 4,321 through 4,335 (of 5,841 total)

  • RE: Crosstab query - Please help. it has been a few days without sleep

    This is gonna be a monster SUM(CASE ...) query, but definitely doable as long as the column values are known. Have fun Jeff. Something like this is billable...

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

  • RE: Windows 2008 R2, SQL 2008 sp1 Slow Delivery of Results

    1) I would turn off hyperthreading. it is more often suboptimal than helpful for sql server workloads

    2) your disk metrics are not as good as you think. 10...

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

  • RE: Performance analysis problem

    1) why are you checking for memory problems? Those are maybe 5% of the actual performance problems out there.

    2) are you actually HAVING any performance problems? ...

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

  • RE: Reverse Engineering Entity Relationship Diagrams for SS2005

    Jportelas (12/2/2009)


    Yep, Visio is great, but the diagrams are UML diagrams and those are not exactly ER models. In the company I work for they require the diagrams to be...

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

  • RE: Optimization jobs

    mohammed moinudheen (12/2/2009)


    Just one doubt, in SQL server 2005 we have reorganize, rebuild index tasks in maintenance plans

    But in SQL server 2000 when we run optimization jobs, does it do...

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

  • RE: How to write if else condition in Procedure

    doobya (12/3/2009)


    I wouldn't download the BOL

    use the lightweight online version

    http://msdn.microsoft.com/en-us/library/ms130214.aspx

    I would avoid the (extremely bad) microsoft local help system

    the online versions are much quicker

    that is unless you like:

    - waiting up...

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

  • RE: Percentage in Case statement

    Actually LMU our queries do not produce the same plan. It only seems that way due to the limitations of the graphical query plan you probably looked at. ...

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

  • RE: High % Disk Time but low Avg. Disk Queue Length

    RBarryYoung (12/1/2009)


    support.sql (11/26/2009)


    ...Please evaluate @nalytics Performance Free Data Collector for Microsoft SQL Server & Windows Server...

    You know, this kind of constant product spamming would go down a lot easier if...

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

  • RE: help add column of repeating numbers 123412341234

    I didn't use the NTILE function because it seemed the OP wanted the 'buckets' of leads per salesperson to be evenly distributed in desc order. Something semi-random such as...

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

  • RE: help add column of repeating numbers 123412341234

    Peter Schott (12/1/2009)


    Keep forgetting about the Row_Number function, even though I've used it. SQL 2000 and lower habits are pretty deeply entrenched. 😛

    Thanks for the reminder about that one.

    I...

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

  • RE: help add column of repeating numbers 123412341234

    Here is another solution that doesn't require an identity column:

    select name, LeadQuality, CASE WHEN (LeadOrder+3)%4=0 THEN 1

    ...

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

  • RE: Bulk insert performance.

    Unless you have very few rows in the table relative to the amount being added, I would say that dropping the indexes and recreating them would NOT be the best...

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

  • RE: Totals for each month in a date range query

    If you know IN ADVANCE what date range you wish to deal with, then a fixed query such as below is perfect. If you don't, then I recommend you...

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

  • RE: Percentage in Case statement

    Isn't this the best solution for the stated problem?

    select Total, Type1Count, Type1Count*100.0/Total as Perc1, Type2Count, Type2Count*100.0/Total as Perc2

    FROM (

    select count(*) as Total,

    sum(case...

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

  • RE: How to write if else condition in Procedure

    I highly recommend you download the latest copy of SQL Server 2005 Books Online, install it, and get very familiar with it. It is a wonderful resource!!!

    Here is the...

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

Viewing 15 posts - 4,321 through 4,335 (of 5,841 total)