Forum Replies Created

Viewing 15 posts - 2,056 through 2,070 (of 5,841 total)

  • RE: Compilations

    Pretty common scenario actually, and some very nasty things can happen as a result of SET differences (much worse than recompilations). Check the settings the sprocs were compiled under...

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

  • RE: How to get data on Quarterly basis?

    Here you will find a session I did on SQL Server 2012 Windowing Functions. Should get you what you need. There are two other great sessions from me...

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

  • RE: Query tuning

    In my experience the majority of the queries that need to be tuned are ones that run against active data, not against stuff that must first be pulled up from...

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

  • RE: slow sql server machine

    OP: Please don't take this the wrong way, but given some of the statements and questions in your post I fear that you would not be able to either a)...

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

  • RE: Create Clustered Index on a Very Large Table (500 GB)

    SQL Guy 1 (5/7/2014)


    1. Change SORT_IN_TEMPDB = OFF

    2. Remove MAXDOP or set it to high and run at at weekend.

    3. Consider partitioning such a huge table by date.

    1) I...

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

  • RE: Identifying what caused Corruption

    GilaMonster (5/7/2014)


    TheSQLGuru (5/7/2014)


    But given the extent of the problem (pun intended 😛 ) I doubt it is from the shutdown itself, or even multiple unexpected shutdowns.

    I'm not willing to...

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

  • RE: Identifying what caused Corruption

    GilaMonster (5/7/2014)


    Corruption is 99.99% IO subsystem problem. Not necessarily the disks, could be anything anywhere in the IO stack.

    Since you mentioned an uncontrolled shutdown, I'd check and make sure all...

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

  • RE: Changing Availability Group

    Try here and associated links from this page: http://msdn.microsoft.com/en-us/library/hh710053.aspx

    Also, SQL Server 2012 Books Online is your friend!!

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

  • RE: Missing Index suggested by missing index script

    Some of the worst performance messes I have ever had to untangle at clients were due to the use of DTA by unqualified individuals. 2 clients made their systems...

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

  • RE: Is there a fast way for SQL to do a Group By Count on items within a group?

    Seems quite silly (and unscalable) to me to read all the data just to read all the data iteratively. 🙂

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

  • RE: avg_write_stall_ms of tempdb

    PHXHoward (5/2/2014)


    Hi everyone, I'm seeing some really high average write stalls. As I have read, anything greater than 20ms is considered bad. With numbers like ~6400ms on writes and ~150ms...

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

  • RE: Is there a fast way for SQL to do a Group By Count on items within a group?

    Lutz is correct, as usual. You cannot command SQL Server to "keep this table in memory all the time" like you want. However, it WILL stay in memory...

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

  • RE: Is there a fast way for SQL to do a Group By Count on items within a group?

    isuckatsql (5/1/2014)


    select top 15 count(*) as cnt, state from table

    group by state

    order by cnt desc

    select top 15 count(*) as cnt, city from table

    group by city

    order by cnt desc

    select top...

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

  • RE: Need help with query rewrite

    Since you have given us no table schemas, indexing, query plans, sample data, examples how the 2 queries differ in their output I can only say that when faced with...

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

  • RE: VM's for a demo - local or in the cloud?

    I think you can support multiple VMs without having a "killer laptop", especially if you have an SSD attached (or even a fast USB3 flash drive, like my Patriot 128GB...

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

Viewing 15 posts - 2,056 through 2,070 (of 5,841 total)