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...

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

How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1207


How can you select unique records from a table?

1066


Why is normalization important?

1019


How do you write a subquery?

1017


How to combine two stored procedures in sql?

1211


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1173


What are the usages of sql?

1053


What is substitution variable in pl sql?

1036


Can instead of triggers be used to fire once for each statement on a view?

956


Can we edit a view in sql?

970


What are stored procedures in mysql?

1011


Why use truncate instead of delete?

1000


How many types of normalization are there?

953


What is sql procedures and functions?

998


What is the best partition size for windows 10?

994