Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-02-24 : 07:38:41
|
| weeny writes "Hello,I am trying to install OpenCMS using Microsoft SQL Server 7.00 - 7.00.623 on an XP PC. Some inserts generated by the OpenCMS setup don't work, because conversion from string to datetime does not work as expected by the OpenCMS programmers. Example:UPDATE CMS_TASK SET STARTTIME = '2003-02-18 23:31:05.369' where ID=1;results in conversion errors, while the same thing using '2003-18-02 23:31:05.369' works (STARTTIME is of datetime type). Obviously, the SQL Server expects the Date to be of Format yyyy-dd-mm. Since I can't change the generated SQL statements of OpenCMS, I would like to know if there is any way to change the behaviour of SQL server. Language set for the database and user is German. I am using an atinav JDBC driver, but I don't think that this is of concern.Hoping for help,weeny" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-02-24 : 10:28:33
|
| You needset dateformat dmyYou can include this statement as part of each connection setup.You can also change the default date format as a startup parameter for the server but I can't seem to find out how at the moment.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|