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

You want to use a perspective in an mdx query. How do you select the perspective?

231


How to list all tables in the database using odbc_tables()?

981


What is the difference between stored procedure and functions?

1061


Explain the types of indexes.

1111


How to use order by with union operators in ms sql server?

967


Explain the properties of sub-query in sql server?

954


How to fine-tune reports?

247


What is t-sql script to take database offline – take database online.

1022


How to select an exiting database using mssql_select_db()?

909


What is outer join in sql server joins?

1045


What is a linked server in sql server?

1015


What is query and its types?

871


How important do you consider cursors or while loops for a transactional database?

907


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

936


What is dbcc updateusage?

1151