How to get column size of a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kasukur
    New Member
    • Feb 2008
    • 5

    How to get column size of a table

    Hi

    Can someone please help me... It's seem like there is not a single way to get the column size from a dataset, table, datarow from SQL/Oracle in .Net using C# or VB

    Thanks in advance
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Try to use this
    select max(vsize(colum _name)) from table_name
    in oracle

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      What do you mean by column size?
      How many bytes are stored for each entry in the column?
      The DataType of the column?
      The displayable width of the column?

      Comment

      • kasukur
        New Member
        • Feb 2008
        • 5

        #4
        Thanks for your replies

        i can't use select query, what i need to do is call a stored procedure which returns me a cursor and i need to find out the actual defined size of each column

        Hope i'm clear

        thanks
        Sri

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          A select query would return equiv of a cursor, I tjhink you have to query special system databases to get what you want. (there is a system database that stores information about all the created databases) I am not sure which one or what, but use a database explorer program and pick through your system databases to see it maybe?

          Comment

          Working...