What are the differences between stored procedure and
functions in SQL Server 2000?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / tarun waia
function cant return Result set where
procedure can
| Is This Answer Correct ? | 17 Yes | 45 No |
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 |
let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration
How do I setup a local sql server database?
How many triggers are possible per table?
Can you force a query to use a specific index?
How to check if stored procedure is running in sql server?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
What is the full meaning of dml?
Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?
Does a sql server 2005 select statement require a from?
What is model database in sql server?
How can we delete a table in sql server?
what is the maximum size of a row? : Sql server database administration
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)