The ORA-00911 Invalid Character error and my INSERT from VB

HELLO, ALL!

I have been troubled by an INSERT sentence that seems to be having problems ONLY when executed from an ADODB.Connection object in Visual Basic 6.

If I execute this from SQL+, I have no problems, but when executed from the CONNECTION or the COMMAND objects, I get the ORA-00911 Invalid Character error message. Can you possibly see any character that can be replaced or that isn't accepted by Oracle?

insert into CANDIDATOS(NUMBER_SOLIC, NAME, ....)
 values (688,'Jesús','Aispuro','Altamirano',' ',0,' ','','H','O',' ','0',NULL,0,' ',' ',120,28,NULL,NULL,'','XX','MEXICANA',0,0,'N',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'N','N',NULL,'',NULL,'N',NULL,0,0,'','','N','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL,TO_DATE('2003-03-28','YYYY-MM-DD'),'S',1,TO_DATE('2003-03-28','YYYY-MM-DD'),0,0,TO_DATE('1978-05-23','YYYY-MM-DD'),'650',NULL,NULL,TO_DATE('2003-03-28','YYYY-MM-DD'),10,'',NULL,120,28,NULL);

Thank you so much for any help you could provide!
luisarmandonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ypwitkowCommented:
Delete ; on the end of statement.

Greetings,
Lucy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RamaDeviCommented:
And also verify that you have put the proper quotes when using inside the connection objects.

Thanks,
Rama Devi
0
luisarmandonAuthor Commented:
In fact, it WAS something as obvious like that, dear Lucy.

Thanx thanx very much for opening my eyes.

Luis
0
Piyu75Commented:
I get same error (Invalid Character) if I try to run multiple statements in one query through vb6, ADODB connection
Mysql =  "DELETE TBLTEST1;" & _
" DELETE TBLTEST2;"
rs.Open MySQL, DBConn, adOpenStatic, adLockOptimistic
If I get rid of ; then I get a message "Statement not ended properly"
I can run single statements successfully.

Help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.