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
What is sql view?
Difference between Inner vs outer joins?
What are the types of containers in ssis?
What is a performance monitor?
How to backup encryption key ?
How to Sync Two SQL Azure Databases?
What is apply operator in sql?
What is enhanced database mirroring in sql server 2008?
How to declare and use cursor variables?
How to create a store procedure with encryption?
Where are stored procedures in sql server?
when you create a database how is it stored? : Sql server database administration
What is the difference between stored procedure and functions?
can you implement data mining in SSRS?
What are the advantages of passing name-value pairs as parameters?