473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Date format in Sql Server 2000 italian and english

I have a Sql Server 2000 installation and my server is Win2k sp2
English.
If i run a query with WHERE condition, for example,

SELECT * FROM TABLE WHERE DATEOFBIRTH ='2004-01-15'

my resultset contain the records correct.

But the results with the same query, which run on a Sql Server 2000
installation with same collation and a server Win2k Italian, is:
'La conversione del tipo di dati da char a datetime ha generato un
valore di tipo datetime non compreso
nell'intervallo di valori validi.'

English error:
'Converting data type from char to datetime has generated a datetime
value that is out of range of valid values'

It is not possible to change all query in my client application.

How I can have the same results for the same query in both
installations?

Thanks in advantage

Maurizio

Jul 23 '05 #1
3 4872
SELECT *
FROM table
WHERE dateofbirth ='20040115'

--
David Portas
SQL Server MVP
--

Jul 23 '05 #2
SELECT *
FROM table
WHERE dateofbirth ='20040115'

--
David Portas
SQL Server MVP
--

Jul 23 '05 #3
Maurizio Fazio (ma************@gmail.com) writes:
I have a Sql Server 2000 installation and my server is Win2k sp2
English.
If i run a query with WHERE condition, for example,

SELECT * FROM TABLE WHERE DATEOFBIRTH ='2004-01-15'

my resultset contain the records correct.

But the results with the same query, which run on a Sql Server 2000
installation with same collation and a server Win2k Italian, is:
'La conversione del tipo di dati da char a datetime ha generato un
valore di tipo datetime non compreso
nell'intervallo di valori validi.'

English error:
'Converting data type from char to datetime has generated a datetime
value that is out of range of valid values'

It is not possible to change all query in my client application.

How I can have the same results for the same query in both
installations?


In addition to David's response, check out this article for the
gory details: http://www.karaszi.com/SQLServer/info_datetime.asp.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chopper | last post by:
I realise this question has been raised many times but I am still no wiser as to why setting the locales will not work in my ASP application. I have searched on google groups etc. and tried...
4
by: Daniel Corréia | last post by:
Bonjour, Comment connaître en vbscript le formatage de la date (JJ/MM/AAAA, ou MM/JJ/AAAA....) sur la machine hébergeant les pages asp ? Merci d'avance -- Daniel CORREIA
5
by: Giorgio Cervati | last post by:
Hi, is there a way to 'force' ASP date function to return date in a given format; I mean, my need is to force 'date()' function to give me system date in italian format instead of english (O.S. is...
15
by: Simon Brooke | last post by:
I'm investigating a bug a customer has reported in our database abstraction layer, and it's making me very unhappy. Brief summary: I have a database abstraction layer which is intended to...
7
by: Niall Porter | last post by:
Hi all, I'm building an ASP app on a Windows 2000/IIS machine which interfaces with our SQL Server 2000 database via OLE DB. Since we're based in the UK I want the users to be able to type in...
4
by: Matteo | last post by:
Hy everybody. I'm not a html writer, but a sysadmin who's trying to help a user able to compile an online form with IE but not with Mozilla (Moz1.6, Ns7.1, Firefox 0.8+) due to a javascript date...
2
by: Rahul | last post by:
Hey Guys I have a development environment, in which the whole SQL syntax is stored in the Database. So the syntax in the databse column could be "where BirthDate = '12/31/2005' and ID =...
5
by: Easystart | last post by:
Hi, Sorry for my English. English is not my native tougue. I am working in MS Access 2000 with a SQLServer 2000 Backend database. MS Access 2000 is my GUI front end that has SQLServer linked...
17
by: pamelafluente | last post by:
Hi I have to insert dates into some Access and SQL Databases. I need to be general as the target computer might be in any country. -------- - For access I wrote the follow: Function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.