home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / 7971 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.8 KB  |  47 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!mcsun!chsun!hslrswi!nch!maw
  3. From: maw@nch.NORASIA.COM (Mathew Wlodarczyk)
  4. Subject: Sybase small(datetime) format
  5. Message-ID: <1992Nov20.105241.4629@norasia.nch>
  6. Keywords: Sybase, data type, datetime, format
  7. Sender: maw@nch.norasia.COM
  8. Organization: Norasia Shipping Services SA, Fribourg, Switzerland
  9. Date: Fri, 20 Nov 1992 10:52:41 GMT
  10. Lines: 35
  11.  
  12.  
  13. Hi,
  14.  
  15. we are having problems with the small(datetime) data type in Sybase 4.8
  16. on SUN. We would like to use the European format - dmy for input and output
  17. (I guess the format in which dates are stored cannot be changed), and to
  18. set this as default for all users of the SQL server. Is seams to me that
  19. the easiest way to do it is by modifying
  20.  
  21.         dateformat=mdy
  22. to
  23.         dateformat=dmy
  24.  
  25. in the file ~sybase/locales/us_english/common.loc, as described on page
  26. 4-2 of the International Supplement to the System Administration Guide.
  27. (I only have the 4.2 version of this manual, 4.8 probably does not exist
  28. and 4.2 is valid for 4.8 too [??].) Unfortunately, this what the manual
  29. says works for modifying names of months or their abbreviations, but it
  30. does not work for the date format, at least for me. I also restarted
  31. the SQL server and I even did a new installation, but it still does not
  32. work.
  33.  
  34. Does anybody know whether it should work and how to do it? What is the
  35. best alternative? SET DATEFORMAT works only for the current session and
  36. does not work for the output format. I would not like to use CONVERT.
  37.  
  38. Thanks in advance.
  39. Mathew.
  40.  
  41.  
  42. ----------------------------------------------------------------------------
  43. Prediction is very difficult, especially of the future.        - Niels Bohr
  44. ----------------------------------------------------------------------------
  45. Mathew Wlodarczyk                    maw@nch.norasia.COM
  46. Norasia Shipping Services        Fribourg        Switzerland
  47.