Indexing queries

  • I am using the SQL Management Studio alter script. Note attached image

  • kyle.doouss (12/2/2011)


    I am using the SQL Management Studio alter script. Note attached image

    Then the foramtting won't get screwed up in the edits.

  • Some times I use the design mode which then screws up the layout.

    Is there no way apart from reformatting manually then?

  • kyle.doouss (12/2/2011)


    Some times I use the design mode which then screws up the layout.

    Is there no way apart from reformatting manually then?

    http://www.red-gate.com/products/sql-development/sql-prompt/

  • Ninja's_RGR'us (12/2/2011)


    kyle.doouss (12/2/2011)


    Some times I use the design mode which then screws up the layout.

    Is there no way apart from reformatting manually then?

    http://www.red-gate.com/products/sql-development/sql-prompt/

    I'm glad you brought it up. I've been grinding my teeth over here trying not to suggest it.

    ----------------------------------------------------The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood... Theodore RooseveltThe Scary DBAAuthor of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd EditionProduct Evangelist for Red Gate Software

  • Grant Fritchey (12/2/2011)


    Ninja's_RGR'us (12/2/2011)


    kyle.doouss (12/2/2011)


    Some times I use the design mode which then screws up the layout.

    Is there no way apart from reformatting manually then?

    http://www.red-gate.com/products/sql-development/sql-prompt/

    I'm glad you brought it up. I've been grinding my teeth over here trying not to suggest it.

    Isn't it part of your job description?

    I'll just the sales comission :hehe:.

    Kidding aside, it's really a great tool for that job.

  • Ninja's_RGR'us (12/2/2011)


    Kidding aside, it's really a great tool for that job.

    That's an understatement. I've been using the format option to sort out the mess of code that I'm trying to optimise. Otherwise it would take me days to just get the procedures to a readable state.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Ninja's_RGR'us (12/2/2011)


    Grant Fritchey (12/2/2011)


    Ninja's_RGR'us (12/2/2011)


    kyle.doouss (12/2/2011)


    Some times I use the design mode which then screws up the layout.

    Is there no way apart from reformatting manually then?

    http://www.red-gate.com/products/sql-development/sql-prompt/

    I'm glad you brought it up. I've been grinding my teeth over here trying not to suggest it.

    Isn't it part of your job description?

    I'll just the sales comission :hehe:.

    Kidding aside, it's really a great tool for that job.

    Yes & no. I'm supposed to advocate, not be obnoxious (more than usual I mean).

    ----------------------------------------------------The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood... Theodore RooseveltThe Scary DBAAuthor of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd EditionProduct Evangelist for Red Gate Software

  • Thanks! We will give it a whirl.

  • Grant,

    Feel free to promote that product any time. Like Gail, it's saved my bacon when everyone is breathing down my neck to fix some procedure that was basically unreadable to start with.

    Todd Fifield

  • It's also great when people here post unreadable piles of garbage and expect the person helping them to figure it out.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (12/2/2011)


    It's also great when people here post unreadable piles of garbage and expect the person helping them to figure it out.

    NOOOO WAYYYYY!

    Who would do such a thing??

    <15 000 links snipped out>

    :hehe:

Viewing 12 posts - 16 through 26 (of 26 total)

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