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. Database & SysAdmin
  3. Database
  4. How to display full column length in SQL

How to display full column length in SQL

Scheduled Pinned Locked Moved Database
databasequestionc++tutorial
4 Posts 3 Posters 4 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.
  • I Offline
    I Offline
    IrishSonic
    wrote on last edited by
    #1

    Hiya I have an MFC app that writes data to my SQL database. The columns lenghts are set to 30. But when I open my SQL database to view the contents, I can only see the first 15 chars of each column.. How do I get the SQL database to display the full columns lenghts when it is opened?? Thanks, grahamoj.

    N J 2 Replies Last reply
    0
    • I IrishSonic

      Hiya I have an MFC app that writes data to my SQL database. The columns lenghts are set to 30. But when I open my SQL database to view the contents, I can only see the first 15 chars of each column.. How do I get the SQL database to display the full columns lenghts when it is opened?? Thanks, grahamoj.

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Are you passing spaces at the end of the values at all, is it 30 characters of data, could you be trimming the values? -Nick Parker

      1 Reply Last reply
      0
      • I IrishSonic

        Hiya I have an MFC app that writes data to my SQL database. The columns lenghts are set to 30. But when I open my SQL database to view the contents, I can only see the first 15 chars of each column.. How do I get the SQL database to display the full columns lenghts when it is opened?? Thanks, grahamoj.

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        in query analyser, tools menu, options, results tab, maximum output characters per column. jon

        #include <beer.h>

        I 1 Reply Last reply
        0
        • J Jon Hulatt

          in query analyser, tools menu, options, results tab, maximum output characters per column. jon

          #include <beer.h>

          I Offline
          I Offline
          IrishSonic
          wrote on last edited by
          #4

          Hiya thanks, have checked that but it is already set to 256 chars. What I do is write the info to the database and then using Enterprise Manager, go in to the table to view it. All of the string is in the column. I can see it when I expand the column. What I want to be able to do is when I open the table in Enterprise Manager, I want the column already expanded to the full lenght of the string... Any ideas, grahamoj

          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