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

Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

2069


Differentiate between syntax and runtime errors.

1119


What is the difference between numeric and autonumber?

938


what is schema? : Sql dba

983


Mention what is the use of function "module procedure" in pl/sql?

1005


What is a field in a database?

1001


What are different types of statements supported by sql?

1095


what is the use of double ampersand (&&) in sql queries?

1114


explain the delete statements in sql

972


What does a pl/sql package consist of?

926


What does pl sql developer do?

878


Explain isolation levels. : Transact sql

1014


What is sharding in sql?

915


What is on delete restrict?

936


What is rtm stands for?

1018