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 / madhu sudhan g
Hiiii
in Stored Procedures we cannot create same temp table twice if it is in IF else conditions also
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we call stored procedure in trigger?
Explain iaas, paas and saas?
How to call stored procedure using http soap?
What are the new security features added in sql server 2012? : sql server security
What are the steps you should follow to start sql server in single-user mode?
Where is trigger in sql server?
Define normalisation?
What is the contrast between sql and pl/sql?
What is dimension table? : sql server analysis services, ssas
hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail
What is sub-query in sql server? Explain its properties.
What do you mean by an execution plan? Why is it used? How would you view it?
Explain differentiate between a having clause and a where clause?
Do you know what is normalization of database? What are its benefits?
What are commonly used odbc functions in php?