I have tables in my database named Jay and Members.
I want to use SQL code to delete the Members table then rename the Jay table to Members
I thought the following would do the trick but no luck. It is saying Incorrect syntax near 'RENAME'.
This is the SQL code I'm trying to run:
DROP TABLE Members
RENAME TABLE Jay TO Members
...anyone know how to do this? And no, I can't just do it manually through Enterprise Manager. I need to be able to do it using SQL statements.
Thanks!
I want to use SQL code to delete the Members table then rename the Jay table to Members
I thought the following would do the trick but no luck. It is saying Incorrect syntax near 'RENAME'.
This is the SQL code I'm trying to run:
DROP TABLE Members
RENAME TABLE Jay TO Members
...anyone know how to do this? And no, I can't just do it manually through Enterprise Manager. I need to be able to do it using SQL statements.
Thanks!