home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!mcsun!chsun!hslrswi!nch!maw
- From: maw@nch.NORASIA.COM (Mathew Wlodarczyk)
- Subject: Sybase small(datetime) format
- Message-ID: <1992Nov20.105241.4629@norasia.nch>
- Keywords: Sybase, data type, datetime, format
- Sender: maw@nch.norasia.COM
- Organization: Norasia Shipping Services SA, Fribourg, Switzerland
- Date: Fri, 20 Nov 1992 10:52:41 GMT
- Lines: 35
-
-
- Hi,
-
- we are having problems with the small(datetime) data type in Sybase 4.8
- on SUN. We would like to use the European format - dmy for input and output
- (I guess the format in which dates are stored cannot be changed), and to
- set this as default for all users of the SQL server. Is seams to me that
- the easiest way to do it is by modifying
-
- dateformat=mdy
- to
- dateformat=dmy
-
- in the file ~sybase/locales/us_english/common.loc, as described on page
- 4-2 of the International Supplement to the System Administration Guide.
- (I only have the 4.2 version of this manual, 4.8 probably does not exist
- and 4.2 is valid for 4.8 too [??].) Unfortunately, this what the manual
- says works for modifying names of months or their abbreviations, but it
- does not work for the date format, at least for me. I also restarted
- the SQL server and I even did a new installation, but it still does not
- work.
-
- Does anybody know whether it should work and how to do it? What is the
- best alternative? SET DATEFORMAT works only for the current session and
- does not work for the output format. I would not like to use CONVERT.
-
- Thanks in advance.
- Mathew.
-
-
- ----------------------------------------------------------------------------
- Prediction is very difficult, especially of the future. - Niels Bohr
- ----------------------------------------------------------------------------
- Mathew Wlodarczyk maw@nch.norasia.COM
- Norasia Shipping Services Fribourg Switzerland
-