inter Posted September 2, 2005 Posted September 2, 2005 (edited) Hello, I have made an application where I execute an sql statement to the database. I have 3 sql statements. 1: I do a count for people based on the name 2: I do a count for people based on birth date 3: I do a count for people based on ID. All 3 queries work in the database and also in my application on my computer. I use executescalar in the application. But I have made a package to install on other computers. and when I start the programme on other computers... everything works Except for the second query .... there i execute a sql statement, in this stament I look for people based on the BIRTH DATE... this is my query: it works on my computer but not on the computer of someone else :s ... Can anyone help ???? I get the next exception :s An unhandled exception has occured in your application. if you click Continue, the applicaiont will ignore this error and attempt to continue. if you click Quit, the application will be shut down immediately. ORA-01843: not a valid month Edited September 2, 2005 by inter Quote
inter Posted September 2, 2005 Author Posted September 2, 2005 the country date format was set to american at the users computer while it was different on my computer thx Quote
Administrators PlausiblyDamp Posted September 2, 2005 Administrators Posted September 2, 2005 How are you generating the SQL that contains the date? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
inter Posted September 2, 2005 Author Posted September 2, 2005 How are you generating the SQL that contains the date? as a string. but i have put to_date(date,'dd/mm/yyyy') around the date... now it works ... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.