Results 1 to 8 of 8

Thread: ORDER BY what then?

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    ORDER BY what then?

    Hello,

    With SQL, how can i order an nVarChar field!

    It gives me an error:

    can't order by nvarchar,image field or ...

    is there a way to order letters?

    tx

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    what database format are you using??? I have many SQL statements in my code that does an order by an nvarchar field.. I use sql server 2000

  3. #3

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    i'm using an sql db,

    well actually it's not nvarchar it's

    the text, ntext and images data type are not ...

    so ?

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    could you change it to nVarChar? isn't nText used for large text data.. like a memo data type in access?

  5. #5

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    yeah i'll try that!

    this is just how it became when i upsize it from access!

  6. #6
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    TEXT in SQL Server = MEMO in Access

    You can't order on a MEMO field in Access, and you can't order on a TEXT field in SQL Server.

    Use VarChars if you want to order by that column
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  7. #7

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    tx buddies,

    everything is fine now

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by sebs
    tx buddies,

    everything is fine now
    yeah sometimes using the upsizing wizard can be a little freaky.. I actually prefer the import table wizard that is in SQL server... works the same way.. but I think it does the job a little better... and there is more you can customize when importing data...

Posting Permissions

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



Click Here to Expand Forum to Full Width