How to get oracle nextval use functoid
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > How to get oracle nextval use functoid




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to get oracle nextval use functoid  
Mapping question


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 07:48 AM

Hi,

When I receive customer EDI(for example: orders) then must insert into
Oracle database. But oracle database table structure has a rkey, so i used
SELECT SEQ_TableName.NEXTVAL FROM DUAL to get a key in the VB. but I dont'
know how to get value use functoid in the mapper.
Could anyone give me tip?
any help would be appreciated.
Thanks,
John





[ Post a follow-up to this message ]



    RE: How to get oracle nextval use functoid  
snap


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-06 01:43 PM

Hi,

In your transformation : maybe you can map it directly into the fied with a
Concatenation string with 1 constant : "SEQ_TableName.NEXTVAL".

The result may be like this :

Insert into <your table> (mykey, myfield1, myfield2) values
(SEQ_TableName.NEXTVAL, fieldvalue2, fielvalue3)

I haven't try this, but i think it works great.

Second solution : put a trigger directly into your table on insert to make
this.

snap.

"Mapping question" wrote:

> Hi,
>
>  When I receive customer EDI(for example: orders) then must insert into
> Oracle database. But oracle database table structure has a rkey, so i used
> SELECT SEQ_TableName.NEXTVAL FROM DUAL to get a key in the VB. but I dont'
> know how to get value use functoid in the mapper.
>   Could anyone give me tip?
>   any help would be appreciated.
>   Thanks,
>    John





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register