.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> Others >> Post New Question Subscribe to Interview Questions

Database: State whether Trigger is a stored procedure or not?

Posted By :shankey     Posted Date :July 25, 2011    Points :40   Category :Others 
.Yes, It is a Stored procedure that initiates an action when an event occurs.

You can also find related Interview Question to Database: State whether Trigger is a stored procedure or not?  below: 

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.


Database: Define Stored Procedure

.A stored proceduer is a named group of sql statements that have been previously created and stored in server database. (More...)

Database: What are the benefit of using Stored Procedure?


.Reduces network traffic
.Improve performance
.Helps to ensure integrity of database
.Once modified, available to all clients (More...)

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. (More...)

Database: Difference between Function and stored procedure?


Function can be used in sql statements anywhere in where/select/having etc. where as stored procedure cannot be.

Database: Is recursion is posible in Sql server stored procedure


Yes, Stored procedure in sql server can call itself. (More...)

What is a Stored Procedure?

Its nothing but a set of T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. (More...)

How to deal with return value of stored procedure when you are using DataReader ?

To deal with such scenario, you can find "ParameterDirection.ReturnValue" in .net
You can use this parameter direction to read the return value of the stored procedure.

Following example can make it more clearer.
In case, you have following or similar type of return statement somewhere in your stored procedure.
Return -999
To read this value, following code works,

Dim result As Integer = 0
Dim retValParam As New SqlClient.SqlParameter("@RETURN_VALUE", SqlDbType.Int)
retValParam.Direction = ParameterDirection.ReturnValue
result = retValParam.Value ' here the result must contain the returned value. In this case, it will be -999 (More...)

What is the difference between "dynamic SQL" and "stored procedure" ?

Dynamic sql is the bunch of statements that dynamically constructed at run time and not stored in database.
Where as Stored procedures are stored in data base in complied form. (More...)

Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?

For restoring the master db we have to stop the SQL Server first and then from command line we can type SQLSERVER -m which will basically bring it into the maintenance mode after which we can restore the master db. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

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 Interview Question 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    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend