Forum Replies Created

Viewing 15 posts - 661 through 675 (of 5,841 total)

  • RE: Recovery Pending with no Error message in log

    After removing TDE did you ensure that the decryption process was complete before you restarted the box? What was the size of the actual data in the transaction log at...

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

  • RE: Split Record by Field into Multiple Records

    Well done Drew. Especially nice given the added flexibility. 2 very minor improvements:

    WITH Tally(n) AS (

    --more efficient "small" tally table 🙂

    SELECT n

    FROM ( VALUES(1), (2), (3), (4), (5), (6), (7),...

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

  • RE: Split Record by Field into Multiple Records

    Chuck S (11/4/2016)


    Hello

    What is the Kgb.Numbers table?

    A Numbers table of course! 😛

    1-n with clustered index on that column. Gets you the same thing as the virtual one using the...

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

  • RE: Split Record by Field into Multiple Records

    Here's a solution using a table of numbers (you can create your own or use a virtual one) and my favorite TSQL word CASE. 🙂 Coffee hasn't kicked in and...

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

  • RE: Mind Boggling Problem - Zero Records loaded

    abbogus (11/3/2016)


    Kevin,

    Yes, there is data present for my job to read. 400+ records existed for each day.

    Right now, my COGNOS guy is checking event logs to see if something was...

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

  • RE: join two tables on Column where column has value specified more than once

    hegdesuchi (11/3/2016)


    I have two tables with below data

    table 1

    Id name company

    1 aaa yyy

    1 aaa bbb

    table 2

    Id ...

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

  • RE: Mind Boggling Problem - Zero Records loaded

    Just curious (and this is a serious question - not being a smart @ss here): what in all that stuff you told us, which was a LOT, gives us any...

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

  • RE: Huge tempdb log file

    Timmorehead 14652 (11/2/2016)


    To shrink it properly, so that it does not grow out of control. Create a Full backup of temp, then create a transaction backup say every 30 minutes...

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

  • RE: WITH INDEX hint

    GilaMonster (11/2/2016)


    Alan.B (11/2/2016)


    Does this index get badly fragmented? That's sometimes a reason that the optimizer wont pick it.

    The optimiser knows nothing about fragmentation of indexes, the index's layout or...

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

  • RE: WITH INDEX hint

    You should have compared the original poor queries Estimated Rows with the Actual Rows at various points in the plan. I am guessing you had a 3+ order of magnitude...

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

  • RE: Using Lag/Lead and OVER() to get growth pattern

    Hope your Capacity value never comes in as 0! :hehe:

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

  • RE: DECIMAL vs NUMERIC for ID values

    BOR15K (11/1/2016)


    TheSQLGuru (11/1/2016)


    BOR15K (11/1/2016)


    Luis Cazares (11/1/2016)


    If you have 9 million rows, int can handle them perfectly. Unless you have a random sequence

    Sadly you're right - every new customer starts from...

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

  • RE: DECIMAL vs NUMERIC for ID values

    BOR15K (11/1/2016)


    Luis Cazares (11/1/2016)


    If you have 9 million rows, int can handle them perfectly. Unless you have a random sequence

    Sadly you're right - every new customer starts from 2 to...

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

  • RE: Update a 3 column table from a single column

    1) Please post up table defs, sample data (in the form of INSERTS) and expected results to clarify your logic and help us write queries to solve.

    2) Your names make...

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

  • RE: Check Database Integrity uisng maintenance

    In 20+ years of consulting on the SQL Server relational engine at all kinds of scale I can count on one hand the number of times it was REALLY OPTIMAL...

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

Viewing 15 posts - 661 through 675 (of 5,841 total)