Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the differences between stored procedure and
functions in SQL Server 2000?

Answers were Sorted based on User's Feedback



What are the differences between stored procedure and functions in SQL Server 2000?..

Answer / shrngika

function contains the no. of line which gives a result
according to your input.
while in procedure you can call function.

Is This Answer Correct ?    0 Yes 0 No

What are the differences between stored procedure and functions in SQL Server 2000?..

Answer / chandu

17) Difference between stored procedure and functions?
Stored Procedures
I) Stored procedure takes input and output parameters.
II) Stored procedure contain all DML operations with
permanent table
III) Return statement can return single numeric value.
Functions:
I) functions takes only input parameters
II) function contains only select statement to perform
operation with permanent table
III) It returns single value or set of rows.

Is This Answer Correct ?    2 Yes 3 No

What are the differences between stored procedure and functions in SQL Server 2000?..

Answer / chauhan rakesh botad

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.

Is This Answer Correct ?    2 Yes 3 No

What are the differences between stored procedure and functions in SQL Server 2000?..

Answer / tarun waia

function cant return Result set where
procedure can

Is This Answer Correct ?    17 Yes 45 No

What are the differences between stored procedure and functions in SQL Server 2000?..

Answer / lrk

The Text property exposes the Transact-SQL or other script
that defines the referenced Microsoft? SQL Server? 2000
database object.

The FunctionName property specifies the function name to
call in the Microsoft? ActiveX? script associated with a
script task or step.

Is This Answer Correct ?    38 Yes 73 No

Post New Answer

More SQL Server Interview Questions

What is live lock and deadlock? what is Lock escalation?

2 Answers   Microsoft,


What are the different SQL Server Versions you have worked on?

0 Answers  


1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ?

10 Answers   Perot Systems,


What is catalog views?

0 Answers  


How to compare the top two records using sql?

0 Answers  


When we should use @@error?

0 Answers  


What are the commands used in DCL?

0 Answers  


Can primary key be a foreign key?

0 Answers  


Explain in brief about Microsoft SQL server?

0 Answers  


what is the out put of below queries? a. select * from Emp where null = null; b. select * from Emp where 1=1;

13 Answers   Patni,


Tell me what is de-normalization and what are some of the examples of it?

0 Answers  


What are the dis_advantages of stored procedures, triggers, indexes?

0 Answers  


Categories