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
Can we write trigger for view?
Explain the usage of floor function in sql server.
Why should you use or avoid select * statements?
What are cascading parameters in ssrs reports?
How to define the name and server for a new dsn?
What are scalar functions?
Can we create clustered index on composite key?
How do you create a data source?
What is transactional replication?
How to find the version of sql server? : sql server database administration
Define primary key?
How to start sql server browser service?
What is a trigger and types of a trigger?
What is equi join with example?
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration