I have a simple sql insert statement that is a part of a asp.net web application which is working fine on my Local computer, However after I deployed the functionality to the stage environment there are problems with the SQL Queries. The database being used is Oracle.
The problem appears when saving an entry with dateType format in to a table. Below is the query:
"insert into cpm2cpm_project_control values ('Test', 'test', 'test', 'test', 'STAGE', 'test123', 'test123', to_date('2013-11-19','yyyy-mm-dd'))"
Now this query works fine on my Local pc, which is pointing to the same database as the Stage environment, but it’s not being executed at the stage environment. The exception that I get on stage is as below:
ORA-01830: ORA-01830: date format picture ends before converting entire input string
So It’s hard to find the actual problem when the same query works on one environment and not on other. Can anyone please help on it?