answersLogoWhite

0


Best Answer

A trigger is a stored procedure. It is a special stored procedure that runs in response to some defined event, such as an insert into a table.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can You Write Trigger in Stored Procedures?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is trigger in DBMS?

A trigger is a special kind of stored procedures that automatically executes when an event occurs in the database server. Insert, update and delete are called as events.


What is Trigger is SQL Server 2005?

A trigger is a SQL procedure that initiates an action when an event (INSERT, DELETE or UPDATE) occurs. Triggers are stored in and managed by the DBMS.Triggers are used to maintain the referential integrity of data by changing the data in a systematic fashion. A trigger cannot be called or executed; the DBMS automatically fires the trigger as a result of a data modification to the associated table. Triggers can be viewed as similar to stored procedures in that both consist of procedural logic that is stored at the database level. Stored procedures, however, are not event-drive and are not attached to a specific table as triggers are. Stored procedures are explicitly executed by invoking a CALL to the procedure while triggers are implicitly executed. In addition, triggers can also execute stored procedures.Nested Trigger: A trigger can also contain INSERT, UPDATE and DELETE logic within itself, so when the trigger is fired because of data modification it can also cause another data modification, thereby firing another trigger. A trigger that contains data modification logic within itself is called a nested trigger.


What is Advantages and disadvantages of stored procedures?

1> Poor Exception handling 2>There are no debuggers available for stored procedures Siva.Pachigolla


What is the examples of Stored procedure?

sp_helpdb , sp_who2, sp_renamedb are a set of system defined stored procedures. We can also have user defined stored procedures which can be called in similar way.


What are stored-procedures?

It is a saved set of SQL commands that can be run by the user.


How do you follow legal and organisational procedures for security and confidentiality of information to be stored?

To follow legal and organizational procedures for security and confidentiality of information storage, ensure compliance with relevant laws (such as GDPR) and company policies. Implement encryption, access controls, regular audits, and staff training to protect data. Maintain secure storage systems, conduct risk assessments, and respond promptly to any breaches to uphold confidentiality.


What is mean by trigger?

it s an stored procedures....it s an statements..that goes into effect when you modify data in a specified table using one or more data modification operations: UPDATE, INSERT,or DELETE.a trigger is a set of Structured Query Language (SQL) statements that automatically "fires off" an action when a specific operation, such as changing data in a table, occurs.


What are stored procedures in data bases?

Stored procedure is the pl-sql block in precomplile from and can be used to excecute plsql statement


What are the procedures in rdbms?

In an RDBMS (Relational Database Management System), the procedures are typically defined as a set of structured query language (SQL) statements that are stored and executed within the database. These procedures can include functions, triggers, and stored procedures. Functions are used to perform calculations or manipulate data, triggers are used to automatically execute actions when specific events occur, and stored procedures are pre-compiled routines that can be called to perform a specific set of operations on the database. These procedures help in maintaining data integrity, enforcing business rules, and improving performance.


What risks are associated with electroencephalography?

Being off certain medications for one to two days may trigger seizures. Certain procedures used during EEG may trigger seizures in persons with epilepsy. Those procedures include flashing lights and deep breathing.


Which of these procedures usually has a set time during which to write?

Free write


What is the difference between a stored database procedure and a batch of SQL statements submitted by a client application?

Stored procedures prevent unauthorized access to data