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
Why are sql functions used?
Explain about nested stored procedure?
Do you know what is rank function?
How to insert data into an existing table?
What is BCNF? How is it better than 2NF & 3NF?
When I delete any data from a table, does the sql server reduce the size of that table?
Explain how to integrate the ssrs reports in application?
How to call stored procedure using http soap?
What are policy management terms?
What is the main purpose of having conversation group?
How to download and install sql server 2005 books online?
Explain the steps to use transact-sql cursor?
What is key set driven?
What are the properties of the relational tables?
What are subqueries in sql server? Explain its properties.