Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object already exist
Message
From
02/09/2007 13:22:00
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Object already exist
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01251908
Message ID:
01251908
Views:
56
Hi,
I have trigger code as below. SQL Server complaint "There is already an object named "#mytable" in the database. But I already restart the server.
CREATE PROCE myTrigger ON mytable FOR INSERT
AS
BEGIN
  IF condition = 'A'
    SELECT * INTO #mytable FROM inserted
  ELSE
    SELECT * INTO #mytable FROM inserted WHERE abc = 'A'
END
If I renamed one of them, the error will be gone.

Please advice.

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform