Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by inter
Posted
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 ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...