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


Top 5 Contributors of the Month
david stephan

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

Protocols and Procedures?

Posted By :Shashi Ray     Posted Date :March 29, 2010    Points :10   Category :Networking 
1. Protocols are set of rules which are used by the nodes on a network to communicate with each other.

2. Protocols are developed by committees, different companies developed products confirming to those protocols.

You can also find related Interview Question to Protocols and Procedures?  below: 

What are the differences among batches, stored procedures, and triggers?

  

Batch:
------
A batch is a group of one or more SQL statements. SQL Server compiles the statements of a batch into a single executable unit, called an execution plan. The statements in the execution plan are then executed one at a time.

stored procedure :
------------------
A stored procedure is a group of SQL statements that is compiled one time and can then be executed many times.

trigger:
--------
A trigger is a special type of stored procedure that is not called directly. Trigger is fired each time row is affected by Insert, Update or Delete command.


(More...)

How LINQ is beneficial than Stored Procedures?

  
There are couple of advantage of LINQ over stored procedures.

1. Debugging - It is really very hard to debug the Stored procedure but as LINQ is part of .NET, you can use visual studio's debugger to debug the queries.

2. Deployment - With stored procedures, we need to provide an additional script for stored procedures but with LINQ everything gets complied into single DLL hence deployment becomes easy.

3. Type Safety - LINQ is type safe, so queries errors are type checked at compile time. It is really good to encounter an error when compiling rather than runtime exception! (More...)

How LINQ is beneficial than Stored Procedures?

  
There are couple of advantage of LINQ over stored procedures.

1. Debugging - It is really very hard to debug the Stored procedure but as LINQ is part of .NET, you can use visual studio's debugger to debug the queries.

2. Deployment - With stored procedures, we need to provide an additional script for stored procedures but with LINQ everything gets complied into single DLL hence deployment becomes easy.

3. Type Safety - LINQ is type safe, so queries errors are type checked at compile time. It is really good to encounter an error when compiling rather than runtime exception! (More...)

What is the difference between routable and non- routable protocols?

  
Routable protocols can work with a router and can be used to build large networks. Non-Routable protocols are designed to work on small, local networks and cannot be used with a router. (More...)

why use stored procedures ?

  
* Execution plan retention and reuse
* Query auto-parameterization
* Encapsulation of business rules and policies
* Application modularization
* Sharing of application logic between applications
* Access to database objects that is both secure and uniform
* Consistent, safe data modification
* Network bandwidth conservation
* Support for automatic execution at system start-up
* Enhanced hardware and software capabilities
* Improved security
* Reduced development cost and increased reliability
* Centralized security, administration, and maintenance for common routines (More...)

What are the commonly used routing protocols?

  
Routers add entries to routing table with the help of routing protocols. The commonly used routing protocols are,

Routing Information Protocol(RIP):-
It is used to advertise the current status and information in the routing table, including the routes to the rest of the routers in every 30 seconds.

Open Shortest Path First(OSPF):-
It is used to determine the shortest path, otherwise known as the lowest cost path among the nodes of different networks. (More...)

Introducing Protocols?

  
Set of predefined rules used by devices in network for data transfer
Network Protocols:
1.NetBIOS/NetBEUI
2.TCP/IP
3.ARP/RARP
4.ICMP/IGMP
5.UDP
6.IPX/SPX
7.HDLC/SDLC (More...)

Difference between stored procedures and functions ?

  
1>Procedure can return zero or n values whereas function can return one value which is mandatory.

2>Procedures can have input,output parameters for it whereas functions can have only input parameters.

3>Procedure allow select as well as DML statement in it whereas function allow only select statement in it.

4>Functions can be called from procedure whereas procedures cannot be called from function.

5>Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.

6>We can go for transaction management in procedure whereas we can't go in function.

7>Procedures can not be utilized in a select statement whereas function can be embedded in a select statement. (More...)

differences between stored procedures and functions:

  
Functions
----------
1) can be used with Select statement
2) Not returning output parameter but returns Table variables
3) You can join UDF
4) Cannot be used to change server configuration
5) Cannot be used with XML FOR clause
6) Cannot have transaction within function

Stored Procedure
-----------------
1) have to use EXEC or EXECUTE
2) return output parameter
3) can create table but won't return Table Variables
4) you can not join SP
5) can be used to change server configuration
6) can be used with XML FOR Clause
7) can have transaction within SP (More...)

How many types of Stored Procedures are there in Sql Server?

  
1. User Defined Stored Procedures.
a. Transact-SQL stored procedure
b. CLR Stored Procedure.

2. System Stored Procedures (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