Solved

Fire Oracle triger from VB

Posted on 2001-06-22
9
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Expert Comment

by:jrspano
ID: 6219600
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
ID: 6219623
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
ID: 6219701
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:Stella
ID: 6219713
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
 
LVL 3

Expert Comment

by:jrspano
ID: 6219780
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
ID: 6219806
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
ID: 6219836
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
ID: 7139701
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
ID: 7173994
Comment from expert accepted as expert

Computer101
E-E Moderator
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

710 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