ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PASSTHRU INSERT Statement

Post new topic  Reply to topic
 PASSTHRU INSERT Statement « View previous topic :: View next topic » 
Author Message
nukalas2010
PostPosted: Tue Jul 10, 2012 2:41 am    Post subject: PASSTHRU INSERT Statement Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

Hi All,

Can any one let me know wat's wrong in the below statement.

When I am using below statement

Code:
PASSTHRU('INSERT INTO Database.T1(N) VALUES(?)', 12);


I am getting error as
Quote:
ORA-00942: table or view does not exist


But When I am using the below statement it's working fine.

Code:
INSERT INTO Database.T1 (N) VALUES(12);


Thanks in Advance.
Back to top
View user's profile Send private message
mgk
PostPosted: Tue Jul 10, 2012 3:37 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Code:
PASSTHRU('INSERT INTO Database.T1(N) VALUES(?)', 12);


The error is using the word "Database." in the string given to the DB. Passthru sends the string unchanged to the DB, so you need to remove the "Database." first...

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Wed Jul 11, 2012 10:30 pm    Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

[quote="mgk you need to remove the "Database." first...

[/quote]

Yes mgk, now its working fine.. Thanku.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PASSTHRU INSERT Statement
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.