Solved

Triggers or DRI

Posted on 1998-11-21
2
975 Views
Last Modified: 2012-06-27
I am using the Upsize Wizard and one of the choices I have to make is to use DRI or triggers to implements constrains. What is the difference and which one is preferable ?

Thank you.
0
Comment
Question by:ymailhot
2 Comments
 
LVL 7

Accepted Solution

by:
spiridonov earned 100 total points
ID: 1091924
Trigger is actually a stored procedure, which is automatically fired on one of the following actions performed on the table:DELETE INSERT or UPDATE. DRI is a way to declare relationships between tables at the time, when table is created (declared). They perform the same thing, though trigger gives you  more control, since it allows you to have more functionality. for example, if you use DRI to check, that no orders can be entered for non-existing customers,and you try to insert an order,you will just receive standart error message, if you use trigger, you can create your own error message, and perform some addtional tasks.
0
 

Author Comment

by:ymailhot
ID: 1091925
Thank you.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

760 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

21 Experts available now in Live!

Get 1:1 Help Now