Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 5,841 total)

  • RE: MERGE or not to MERGE

    hemabalan (12/30/2015)


    Thanks for the response.

    Heres another one. Using CTE I undestand we dont have to worry about storing and retrieving from tempdb. It works as we have the USING...

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

  • RE: How do I avoid this error -come code modification help needed

    mw112009 (12/30/2015)


    Would you mind passing the SQL syntax please ? I am rather new to the SQL world.. Pardon my ignorance

    You really need to provide us with full table definition...

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

  • RE: Shrink Database

    david.holley (12/29/2015)


    Thanks for the responses. In Googling around, it's interesting to see the responses to the issue. I'll probably keep the true .net errors for 90 days and the advisory...

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

  • RE: MERGE or not to MERGE

    hemabalan (12/28/2015)


    Hi I use lot of merge in my SPs. Never noticed performance issue. If you can provide substantial evi it will great

    Binoogle search for the words merge bugs sql...

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

  • RE: The Most Common Query Blunders...

    Luis Cazares (12/28/2015)


    Eric M Russell (12/28/2015)


    TheSQLGuru (12/28/2015)


    Ooh, another thing I will chime in with. Some of the WORST things I see done on SQL Server have nothing to do with...

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

  • RE: Delete duplicate records from Archived Table the exist in the unarchived table.

    Welsh Corgi (12/28/2015)


    I very much appreciate all of the help.

    I'm only dealing with 50,,, records.

    When I performed the archive I had a lookup table that stored the Batch Size etc.

    Can...

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

  • RE: Delete duplicate records from Archived Table the exist in the unarchived table.

    It actually isn't quite as easy as you probably think it is. There are at least 4 issues that can cause you pain:

    1) locking/blocking

    2) crushing your server (IO reads,...

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

  • RE: The Most Common Query Blunders...

    Ooh, another thing I will chime in with. Some of the WORST things I see done on SQL Server have nothing to do with the databases/applications they run - it...

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

  • RE: The Most Common Query Blunders...

    I have spent a large portion of my 20 years consulting on SQL Server doing tuning work in some fashion or another. The single worst thing I see in aggregate...

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

  • RE: The Most Common Query Blunders...

    Jason A. Long (12/25/2015)


    TheSQLGuru (12/25/2015)


    How about I do a remote presentation of my Common TSQL Mistakes session? I have presented it somewhere around 100 times now for companies, User Groups,...

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

  • RE: The Most Common Query Blunders...

    How about I do a remote presentation of my Common TSQL Mistakes session? I have presented it somewhere around 100 times now for companies, User Groups, SQL Saturdays and other...

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

  • RE: create stored procedure with if condition

    baiju krishnan (12/24/2015)


    Hi,

    I want to write a stored procedure with if condition

    i have two tables

    Login

    -------

    uname|pword|active

    -----------------------------

    Lekshmi|baiju |0

    Jain ...

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

  • RE: Shrink Database

    Yes, shrinking will be DEVASTATINGLY BAD due to the internal fragmentation it creates in all of your tables/indexes. Why can't you just leave the database the size it is? Is...

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

  • RE: Clustered PK and Nonclustered Index on Same Column

    Hitting the clustered index is hitting ALL THE DATA for each seek/scan. Remember, the clustered PK IS the data at the leaf level of the index. All that is on...

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

  • RE: Please Suggest Partition boundaries

    Jeff Moden (12/22/2015)


    TheSQLGuru (12/22/2015)


    Partitioning CAN make PROPERLY DESIGNED report queries go much faster when partition elimination can allow said queries to hit a small fraction of the total data. There...

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

Viewing 15 posts - 1,366 through 1,380 (of 5,841 total)