Interview Questions

1. What is the difference between sp_rename and sp_renamedb?

  • sp_rename: Changes the name of a user-created object in the current database.
  • sp_renamedb: Changes the name of a database. One should use ALTER DATABASE MODIFY NAME for renaming database.
By Hena Parveen 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

6635854 1720 1492 859

Angular

203842 92 71 46

Wordpress

171484 72 64 36