Solved

Fire Oracle triger from VB

Posted on 2001-06-22
9
230 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 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