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
How to use order by with union operators in ms sql server?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
Do you know the different ddl commands in sql?
Is candidate a key?
What is importing utility?
Do you know what are the differences between lost updates and uncommitted dependencies?
When should you use an instead of trigger?
Explain the working of sql privileges?
How to create a testing table with test data in ms sql server?
Can we create clustered index on composite key?
What are xml indexes?
How to turn on the mssql api module in php?
What is resultset concur_updatable?
What is Extended user-defined?
Define magic tables in sql server?