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 / gaurav
Because temp is being used by database internally so that it
is same as a system table so this table can't create by user...
| Is This Answer Correct ? | 1 Yes | 14 No |
Post New Answer View All Answers
How can you insert values in multiple rows using one Insert statement?
What does set rowcount do?
What is normalization and denormalization in sql server?
What is the default schema of your login session in ms sql server?
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?
What are the ways available in sql server to execute sql statements?
What is difference between inner join and join?
What methods do you follow to protect from sql injection attack?
Why we need sql server?
How optimize sql query with multiple joins in sql server?
What do you understand by hotfixes and patches in sql server?
How can I create a new template for import ? : sql server management studio
What is GUID in sql server?
Are connections to sql server encrypted?
What is the difference between composite index and covering index?