Forum Replies Created

Viewing 15 posts - 976 through 990 (of 5,841 total)

  • RE: SQL Server 2016 Standard Availbality groups

    Steve Jones - SSC Editor (6/7/2016)


    If you're mirroring storage at the SAN level, why the AG then? That seems redundant, unless I'm looking at this wrong. The idea with the...

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

  • RE: Query taking 6 hrs and counting (HELP!)- how to concatenate rows into single string

    run sp_whoisactive to see how much work it has been doing, if blocking is happening, what it is waiting on (my guess is cxpacket or some form of IO), use...

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

  • RE: Sequential read from table

    tomd-982312 (6/7/2016)


    I am fairly new to T-SQL and have some experience in Oracle PL/SQL.

    Here is the case:

    I have to read records sequentially from some table in MSSQL database and (on...

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

  • RE: Nasty Fast PERCENT_RANK

    Wonderful work and article Alan!

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

  • RE: T-SQL: Aggregate and/or conditional subquery on where clause

    I didn't read all this thread, and I'm not going to start now. 😉 But it is REALLY hard to think of a scenario in which this WHERE clause is...

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

  • RE: Temp DB filling on simple update statement?

    krypto69 (6/2/2016)


    ...

    The underlying issue turned out to be triggers ...

    I called that!! 😀

    Glad you have completed the one-time update and can move forward!

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

  • RE: Create or update rows in a table on the basis of intervals.

    Your sample data, while nicely laid out, doesn't help us one bit in writing a query that hits a table and produces the desired output. Please convert your request to...

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

  • RE: Help with conditional joins

    I'm thinking this sounds like a classic rank/count per-partition scenario, in which case I would think it could be done with a fairly straight-forward windowing function since you are on...

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

  • RE: Query not executing dynamic way

    Luis Cazares (6/2/2016)


    TheSQLGuru (6/2/2016)


    Luis Cazares (6/2/2016)


    I prefer to use QUOTENAME which will escape quotes and brackets correctly, as well as handle weird names.

    DECLARE

    @dbname sysname,

    ...

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

  • RE: Always On, as a DR site.

    Maybe someday we will get to the point where we can fail over any part of the system, and have it seamless.

    And you though my "flawless" word was too...

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

  • RE: Query not executing dynamic way

    Luis Cazares (6/2/2016)


    I prefer to use QUOTENAME which will escape quotes and brackets correctly, as well as handle weird names.

    DECLARE

    @dbname sysname,

    ...

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

  • RE: Always On, as a DR site.

    Leonard Rutkowski (6/1/2016)


    There are lots of solutions, but other than the SAN replication, we haven't really found a better solution.

    We use log shipping for a couple of databases for...

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

  • RE: Always On, as a DR site.

    Sounds like you are well ahead of most entities I have encountered over the years Leonard! Yes, "flawless" was a loose word choice there, at least for any entity of...

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

  • RE: Performance / Query Tuning Question Regarding Missing Indices

    Lynn Pettis (6/1/2016)


    I have also seen the Missing Index DMVs and DTA recommend a nonclustered index that if implemented duplicated the entire table in the index between indexed and included...

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

  • RE: Looking for a way to find a process/trigger/whatever that is removing entries from a table

    Since you are on SQL 2012 I would look into Extended Events to capture stuff affecting this table.

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

Viewing 15 posts - 976 through 990 (of 5,841 total)