wht is the difference between truncat,drop in sqlserver
wht is the difference between function and stored procedure

Answer Posted / chandra shekher

truncate command will remove the table and again recreate
the table.
drop command will remove the table permanently from the
database.


Function must return a value where as stored procedure may
or may not return a value.
Function can return only one value where as stored
procedure can return multiple values.
Function can be used in sql query where as stored procedure
cannot be used in sql query.
Function is used to compute a value where as stored
procedure can be used to perform a task

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pl sql procedures?

697


Can we enter data in a table in design view?

713


What is the use of sqlerrd 3?

681


Explain select statements in sql?

759


What is database white box testing and black box testing?

852






Is left join and outer join same?

765


What is the purpose of cursors in pl/sql?

798


how do you know the version of your mysql server? : Sql dba

690


How do you get column names only for a table (sql server)?

859


what does it mean to have quoted_identifier on? : Sql dba

889


What is using in sql?

794


What is the difference between a primary key and a clustered index?

697


How do I find duplicates in the same column?

733


What is equi join in sql?

798


How many types of privileges are available in sql?

967