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 / david

it indicates that some one had already executed the stored
proc but forgotten to delete the temp table they have
created.

normally before closing that particular transaction within
the SP we need to use drop table statement.

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If user is owning any SQL Objects, can we drop that user

2008


Disadvantages of the indexes?

1048


Explain iaas, paas and saas?

90


How do you delete duplicate rows in sql server?

899


How to get a list of columns in a view using the "sp_help" stored procedure?

988


What command is used to delete a table from the database in the sql server and how?

1041


What are constraints in microsoft sql server?

1038


What is the sql server agent?

1032


What is a trace frag?

1035


What is cached report?

135


What are three major types of constraints?

1046


if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration

934


What is GUID in sql server?

1092


What are the main sources of data?

1036


Can we insert data into view sql server?

883