Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I'm gonna need a bigger axe

I'm gonna need a bigger axe

Scheduled Pinned Locked Moved The Lounge
database
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 11683251
    wrote on last edited by
    #1

    Auto generated sql query over 11000 characters long. I will have to do something drastic to make it readable.

    V J D M 4 Replies Last reply
    0
    • M Member 11683251

      Auto generated sql query over 11000 characters long. I will have to do something drastic to make it readable.

      V Offline
      V Offline
      Vincent Maverick Durano
      wrote on last edited by
      #2

      that ain't be a problem if you were writing it on VB. :-\

      1 Reply Last reply
      0
      • M Member 11683251

        Auto generated sql query over 11000 characters long. I will have to do something drastic to make it readable.

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        Start with installing Notepad++, go to the plugin manager and add "Poor Man's T-SQL Formatter" It's not perfect, but it becomes fairly readable

        Wrong is evil and must be defeated. - Jeff Ello

        M 1 Reply Last reply
        0
        • J Jorgen Andersson

          Start with installing Notepad++, go to the plugin manager and add "Poor Man's T-SQL Formatter" It's not perfect, but it becomes fairly readable

          Wrong is evil and must be defeated. - Jeff Ello

          M Offline
          M Offline
          Member 11683251
          wrote on last edited by
          #4

          I'm just going to dump everything in a cell in excel and just point to that cell when doing a query. The readability problem isn't really a formatting problem but rather a comprehension problem. But since the returned results are enough for me to work with I'll just do what I need post query to present a report and sweep everything under a nice big rug and home for the best. :) I did panic first when I saw the extent of the query until I realised that I could work around it. I can honestly say that if I would have to dissect the query it would take two weeks non stop and that's being optimistic.

          1 Reply Last reply
          0
          • M Member 11683251

            Auto generated sql query over 11000 characters long. I will have to do something drastic to make it readable.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Only 11,000? Have you seen some of the SQL queries Entity Framework can put together for you? 11K is nothing.

            A guide to posting questions on CodeProject

            Click this: Asking questions is a skill. Seriously, do it.
            Dave Kreskowiak

            1 Reply Last reply
            0
            • M Member 11683251

              Auto generated sql query over 11000 characters long. I will have to do something drastic to make it readable.

              M Offline
              M Offline
              Mark_Wallace
              wrote on last edited by
              #6

              I've found that the best thing to do with such queries is print them out, run them through a shredder, and use the shredded paper to light a barbecue.

              I wanna be a eunuchs developer! Pass me a bread knife!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups