Professional Web Applications Themes

Record Length - Microsoft SQL / MS SQL Server

Aaron, I have a table with chars fields only. How can i find table structure size.? Iam looking for a stored procedure in sql ? thanks thanks "Aaron Bertrand - MVP" <aaronTRASHaspfaq.com> wrote in message news:%23LVrSOWRDHA.3144tk2msftngp13.phx.gbl... > For a specific row (e.g. measure the actual data), or the row size as > defined by the table structure? > > > > > "sunil" <sunil_godiyal> wrote in message > news:Oerd4LWRDHA.3700tk2msftngp13.phx.gbl... > > Is there any stored procedure to find the record size of a table ? > > thanks > > > > > >...

  1. #1

    Default Re: Record Length

    Aaron,
    I have a table with chars fields only.
    How can i find table structure size.? Iam looking for a stored procedure in
    sql ?
    thanks


    thanks
    "Aaron Bertrand - MVP" <aaronTRASHaspfaq.com> wrote in message
    news:%23LVrSOWRDHA.3144tk2msftngp13.phx.gbl...
    > For a specific row (e.g. measure the actual data), or the row size as
    > defined by the table structure?
    >
    >
    >
    >
    > "sunil" <sunil_godiyal> wrote in message
    > news:Oerd4LWRDHA.3700tk2msftngp13.phx.gbl...
    > > Is there any stored procedure to find the record size of a table ?
    > > thanks
    > >
    > >
    >
    >

    sunil Guest

  2. #2

    Default Re: Record Length

    Thanks a lot!!
    "Aaron Bertrand - MVP" <aaronTRASHaspfaq.com> wrote in message
    news:%23xj9HfWRDHA.3880tk2msftngp13.phx.gbl...
    > Maybe you could try:
    >
    >
    > SELECT
    > SUM(CHARACTER_MAXIMUM_LENGTH)
    > FROM
    > INFORMATION_SCHEMA.COLUMNS
    > WHERE
    > TABLE_NAME='tablename'
    > AND RIGHT(DATA_TYPE, 4)='char'
    >
    >
    >
    > "sunil" <sunil_godiyal> wrote in message
    > news:e#YYHWWRDHA.3192tk2msftngp13.phx.gbl...
    > > Aaron,
    > > I have a table with chars fields only.
    > > How can i find table structure size.? Iam looking for a stored
    procedure
    > in
    > > sql ?
    > > thanks
    >
    >

    sunil Guest

Similar Threads

  1. Length cannot be less than zero. Parameter name: length
    By ctk70 in forum ASP.NET Security
    Replies: 3
    Last Post: November 14th, 02:34 PM
  2. Replies: 3
    Last Post: September 14th, 12:25 AM
  3. Stop adding record in subform after record count = 1
    By Charlie in forum Microsoft Access
    Replies: 0
    Last Post: July 31st, 10:42 AM
  4. How to get length of string? length() problems
    By Mitchua in forum PERL Modules
    Replies: 5
    Last Post: July 17th, 12:08 AM
  5. Replies: 0
    Last Post: January 8th, 02:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139