| Author |
Topic |
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2007-10-04 : 10:14:15
|
| Gurus,If I exec query in analyzer SELECT * FROM customerOrder WHERE date > '01/OCT/2007' it is given me error -- Server: Msg 241, Level 16, State 1, Line 1Syntax error converting datetime from character string.but if i exec SELECT * FROM customerOrder WHERE date > '01/OKT/2007' Then its fine.can ne one help me what is the problem is. ThanksKrishna |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-10-04 : 10:19:57
|
| what language is it set to? sounds like maybe it's set to germanEm |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2007-10-04 : 10:22:06
|
| Its USA english Collation is COLLATE SQL_Latin1_General_CP1_CS_ASBut Date is not depend with collation. Am i right..?Thanks-- Krishna |
 |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-10-04 : 10:26:34
|
| Run this:EXEC dbcc useroptionsand see which language SQL server is installed in.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2007-10-04 : 10:28:39
|
| textsize 2147483647language us_englishdateformat mdydatefirst 7lock_timeout -1quoted_identifier SETarithabort SETansi_null_dflt_on SETansi_warnings SETansi_padding SETansi_nulls SETconcat_null_yields_null SETisolation level read committed |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-10-04 : 10:40:16
|
| You should always express date values in YYYYMMDD formatTrySELECT * FROM customerOrder WHERE date > '20071001' MadhivananFailing to plan is Planning to fail |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2007-10-04 : 11:00:24
|
| Thanks Madhi |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-10-05 : 02:03:29
|
quote: Originally posted by CSK Thanks Madhi
Did it work?MadhivananFailing to plan is Planning to fail |
 |
|
|
gerten
Starting Member
17 Posts |
Posted - 2007-10-05 : 02:49:11
|
| Hi madhivanan!Tryed to test the 'EXEC dbcc useroptions' as you write but gett error:Msg 156, Level 15, State 1, Line 1Incorrect syntax near the keyword 'dbcc'. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-10-05 : 04:14:00
|
quote: Originally posted by gerten Hi madhivanan!Tryed to test the 'EXEC dbcc useroptions' as you write but gett error:Msg 156, Level 15, State 1, Line 1Incorrect syntax near the keyword 'dbcc'.
That should bedbcc useroptionsMadhivananFailing to plan is Planning to fail |
 |
|
|
|