Solved

Fire Oracle triger from VB

Posted on 2001-06-22
9
224 Views
Last Modified: 2006-11-17
How can I fire a triger that I have in Oracle from VB application?

thanks.
0
Comment
Question by:Stella
9 Comments
 
LVL 3

Expert Comment

by:jrspano
Comment Utility
i am know very little about oracle, but if it is any thing like sql server you can't just call a trigger.  they are designed to activate when you insert, delete, or update rows in the table they are associated with.  you need a stored procedure if you want to call it.
0
 

Author Comment

by:Stella
Comment Utility
jrspano,
Thanks for your response. My problem is that the triger which is in Oracle database does not activated when I insert record, but it should. I can see my records in a database, but without any changes that triger should do. That's why I wondering how I can call that triger from VB by writing a module to do that.
0
 
LVL 3

Expert Comment

by:jrspano
Comment Utility
i would think that the trigger is written wrong then.  it should fire every time you insert a row nomatter how you do it.
0
 

Author Comment

by:Stella
Comment Utility
jrspano,

The triger is written fine and it's working with a different application that uses the same database. Any ideas why it's not fire when I insert records from VB application?
thanks
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:jrspano
Comment Utility
how are you sending data to the db.  if you arn't doing it try to send it in sql statements. in ado
connection.execute sql
0
 

Author Comment

by:Stella
Comment Utility
I am using Dao connection. And I am saving the records with recordset.addnew. Do you think that it will work if I rewrite it using SQL string and execute it???
0
 
LVL 3

Accepted Solution

by:
jrspano earned 50 total points
Comment Utility
i would give that a try.  pick an easy one and give it a try. I always use sql so i don't know if the .addnew is what is doing it or not.  I do know that my sql always works with triggers on sql server.
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Hi Stella@devx,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept jrspano's comment(s) as an answer.

Stella@devx, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Comment from expert accepted as expert

Computer101
E-E Moderator
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now