Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Database: Define trigger?
Posted By :
Posted Date :
July 25, 2011
It is a Stored procedure that initiates an action when an event occurs. Event can be insert, delete or update.
You can also find related Interview Question to
Database: Define trigger?
Database: Define Stored Procedure
.A stored proceduer is a named group of sql statements that have been previously created and stored in server database.
Database: State whether Trigger is a stored procedure or not?
.Yes, It is a Stored procedure that initiates an action when an event occurs.
Database: State whether a trigger can be called or executed?
.No, It is called by DBMS automatically whenever any changes are made to the associated table.
Database: Difference between stored procedure and trigger?
.Stored procedure are called explicitly where as trigger are called implicitly.
.Stored procedure are not attached to specific table where as triggers are attached to specific table.
.Stored procedure are called by invoking a CALL to it where this does not applies in case of trigger.
It is a object that manipulate data in a set row by row.
Database: Define collation?
Collation is a set of rules that defines how the data is to be sorted and compared.
Database: Define sub query
A sub-query is also refereed as sub-select, they are enclosed with in the body of another sql statement, Sub select statement generally return single row i.e atomic value and then compared with multiple rows using IN keyword in sql statement that encompases sub-select statement.
Database: Define primary key and foreign key?
Primary key is use to uniquely identify each row they are unique and cannot be null where as foreign key are use to ensure data integrity and relationship between tables.
Database: Define Identity Column?
Identity column is a column that automatically generates numeric values. Start and increment value are the two properties of prior importance that need to be set with respect to Identity column. Value of this column is mostly used to identify each row uniquely
Database: If there is a delete trigger on a table and if truncate is fired on that table, state whether trigger will be activated?
No, Because there is no log for Truncate table command.
Database:Define SQL server agent
Its main aim is to ease the implementation of task for the dba with scheduleing of the jobs and scripts.
Database Concurrency in Sql Server.
When two or more user try to update same type of data in a table then Database Concurrency helps in this situation.
There are 2 types of Database Concurrency
Pessimistic: When one user try to change the data with pessimistic concurrency then a lock is placed on the data in a table so that another user cannot change data. when one user finishes then other user can able to change.
Optimistic: When two user works on the same data in a table and one change that data first then second user cannot change that same data becasue the which he have using is allready changed so he cannot do the change becasue change apply to another data that is changed by first user.
What is a trigger?
Triggers are basically used to implement business rules. Triggers is also similar to stored procedures. The difference is that it can be activated when data is added or edited or deleted from a table in a database.
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Data Definition Language (DDL)
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend