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
Explain what role entity and relationship play in an ER diagram.
What are indexes in ms sql server?
Can you explain full-text query in sql server?
Why does sql studio use a single registered database repository? : sql server management studio
Explain syntax for dropping triggers?
explain declarative management framework (dmf) in sql server 2008?
How to create function without parameter in sql server?
Explain about local stored procedure?
Do you know exporting and importing utility?
What is wrong with sql server client libarary dll, ntwdblib.dll?
How you provide security to cube? : sql server analysis services, ssas
How to how to convert numeric expression data types using the convert() function??
What are the rules to use the rowguidcol property to define a globally unique identifier column?
What is query optimization process?
How to convert a unicode strings to non-unicode strings?