Re: Can't get ORDER BY to work without losing sqlserver
Posted in 1995
Kate Juliff (kcj@netcom.com) wrote: : If I type : select col1 col2 from tablename order by col1 : I always loose my slqserver connection. Kate, this may just be a typo but did you really enter the statement exactly as above? Then you forgot to put a comma between "col1" and "col2", resulting in "col2" becoming an alias for "col1". If, however, you did indeed enter the statement with the comma, then I have no idea why the described behaviour occurs, other than maybe you might have used reserved words as actual column or table names. Regards, Richard -- +----------------------------+-------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3421 | | Klinikum Grosshadern | FAX : +49-89-7095-8886 | | 81366 Munich, Germany | | +----------------------------+-------------------------------------------+