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
What is log shipping?
Explain transaction server isolation?
How to download and install microsoft .net framework version 2.0?
How to use subqueries with the exists operators in ms sql server?
How to create an index on an existing table in ms sql server?
Will the writetext statement activate a trigger?
Tell me can we use custom code in ssrs?
What is TDS(Tabular Data Stream) Gateway?
Explain about Joins?
What is a field name?
Define union, union all, minus, intersect?
List the different index configurations possible for a table?
How do you drop an index?
What is the Control Flow in SSIS
What is attribute hierarchy? : sql server analysis services, ssas