How to Rename table name in sql server?
hi can anyone tell me the query How to Rename table name in sql server.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anupam SinghRank #643 · 3.7K reputationPosted May 19, 2014, 1:54 AM EDT
Try :
sp_rename 'OLD_TABLE_NAME','NEW_TABLE_NAME'
Nilesh AvhadRank #3,587 · 406 reputationPosted May 19, 2014, 3:22 AM EDT
SP_RENAME 'EXIST TABLE NAME ','NEW TABLE NAME'
E.G.
SP_RENAME 'EMP','EMPLOYEE'