Whing Dela Cruz
asked on
Rename Table Sql8
Hi experts, I'm trying to rename one of my tables but the solution below didn't work. When I execute it an error meassage says; "Incorrect syntax near the keyword 'TABLE'." I'm using Sql 8. Any help please!
RENAME TABLE Personnel TO newPersonnel
RENAME TABLE Personnel TO newPersonnel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to learn more about this command use below MS link - https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-rename-transact-sql
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much Pawan, It's working. I also thank you Kevin for the important reminders . More power to you both and God bless!
Glad we could help. Take care! Nice job, Pawan!
EXEC SP_RENAME 'schema.oldtablename', 'newtablename'