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

create procedure proc1 (@a int)
as
begin
if @a=1
create table #temp(a1 int)
else
create table #temp(a1 int)
end

while executeing the above code it shows error
like '#temp already exist' .why it shows an error?

Answer Posted / utpal chakraboarty

Because, Stored procedure is pre-compiled language.

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to fetch first 10 records from a file?

978


what are cursors? : Sql server database administration

1012


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

1721


Do you know what is xpath?

1016


What is the sql case statement used for?

1049


Different types of keys in SQL?

1043


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1144


Can we use trigger new in before insert?

875


What do you understand by intent locks?

960


What is standby servers? Explain types of standby servers.

939


How to create a store procedure with encryption?

963


How will you decide the active and passive nodes?

1090


What happens if null values are involved in bitwise operations?

980


What are the underflow and overflow behaviors on float literals?

1075


Determine when to use stored procedure to complete sql server tasks?

1001