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

Because temp is being used by database internally so that it
is same as a system table so this table can't create by user...

Is This Answer Correct ?    1 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlservr.exe - process - sql server (sqlex?press)?

1151


What are the steps you should follow to start sql server in single-user mode?

948


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

1317


Explain in details security in SQL azure?

123


what is a default tcp/ip socket assigned for sql server? : Sql server database administration

1108


What is data source object?

1064


What are information schema views?

1025


What are the restraints imposed on the table design by a merge replication?

1087


What is the recursive stored procedure in sql server?

1072


How you can get a list of all the table constraints in a database?

997


How to integrate the ssrs reports in application?

1039


Why we use trigger in sql server with example?

1012


What is instead of dml trigger?

1052


Mention the uses of stored procedures.

1006


Explain the disadvantages/limitation of the cursor?

1006