Click here to Skip to main content
15,797,961 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can I drop SQL table using trigger or automatic drop table after some time when it is created.

1 solution

You cannot drop a table based on time, there's no state in SQL Server and nowhere for your timer to run. I don't see any reason for a trigger to not drop a table, except that it's stupid.

You should explain what you're trying to do, I think you're almost certainly doing it wrong.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900