Bit and Text Columns

Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.

  1. #1

    Default Re: Bit and Text Columns

    For bit, you can convert to TINYINT in both SELECT and GROUP BY clauses.

    Don't understand why you would group by TEXT... you might be better off
    doing a subquery / derived table.




    "Merwin12" <pablomb@umdnj.edu> wrote in message
    news:0bd501c344bd$e90013f0$a001280a@phx.gbl...
    > I have a sql statement that fails when grouping the
    > bit and text columns.
    >
    > Is there a way to get around this???
    >
    > Thanks.

    Aaron Bertrand - MVP Guest

  2. Similar Questions and Discussions

    1. Text across columns
      Is there (a simple) way to flow text in say three columns, and then have one paragraph, like heading or something, flowing across all three columns,...
    2. Editing text in columns
      If I have 20 or so lines of text with some tabs in two or more columns, what might be the reason that I can?t edit a specific line of text (or word)...
    3. Dynamic text fields. Continuing text over columns
      Hi I'm doing a mock up news paper article over 4 columns in flash mx and the text loads in dynamically. I have 4 dynamic text boxes sitting side...
    4. Text box into 2, 3 or more columns?
      Is there a way to set a text box into 2, 3 or more columns, so that the entire contents can be seen without the need to scroll? Thanks
    5. seperating columns in a text box into multiple text boxes?
      Berney: You probably are better off doing this separating in the query data source for your form. You can use string commands to find which...
  3. #2

    Default Re: Bit and Text Columns

    As for grouping on TEXT columns, the only work around I can think of is
    to group on SUBSTRING(<textcolumn>,900). Of course, with this work
    around you will lose a lot of precision.

    Gert-Jan


    Merwin12 wrote:
    >
    > I have a sql statement that fails when grouping the
    > bit and text columns.
    >
    > Is there a way to get around this???
    >
    > Thanks.
    Gert-Jan Strik Guest

Posting Permissions

  • You may not post new threads
  • You may 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