EBook Performance Tuning with SQL Server DMV

  • Has anyone read this eBook? The link to the SQL scripts, does not hold the scrips from this book... and when I copy the code out.. I have to delete all spaces and recreate them... else I get an error on ' '. Has anyone had this same problem? Fix?

  • I've seen that situation where they are using CHAR(160) , which is a fixed width character that *looks* like a space, but isn't a REAL space (CHAR(32))

    if you use that, it makes scripts look laid out nicely, but it's not copy/pasteable any more.

    a find and replace with a decent text editor, like Notepad++/EditPlus and others will get you where you want to be with the copy/paste script.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Lowell (12/20/2012)


    I've seen that situation where they are using CHAR(160) , which is a fixed width character that *looks* like a space, but isn't a REAL space (CHAR(32))

    if you use that, it makes scripts look laid out nicely, but it's not copy/pasteable any more.

    a find and replace with a decent text editor, like Notepad++/EditPlus and others will get you where you want to be with the copy/paste script.

    You can do a similar find'n'replace in MS Word by replacing "^s" (without the quotes) with a space.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Thanks for the help, Lowell and Jeff, I will do that... it was pain the other way. Thanks for helping folks like me... and Merry Christmas! 😛

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply