How to change the Database Name

Source: Internet
Author: User

DatabaseOfNameYou can change the database name according to your habits. The following describes how to change the database name.

Step 2

Click Start in Windows and select programs. Select Microsoft SQL Server console from the list.

Step 2

Change the name. Right-click the Database Name and select "RENAME" from the menu. This prompt is displayed in a new name, and then press Enter ".

Step 2

Internal functions are provided by SQL Server 2005 and 2000. This syntax changes the name of the database for the following features:

Sp_renameDB '','' of Exec '',''

Replace "" with the current name of the database. Replace "" with the new name of the selected database.

Step 2

Run the "modify" command. The "change" command in the SQL Server Workspace can be used for all versions of SQL Server. The syntax for "change" is as follows:

Change Database modification name =

Replace "" with the current name of the database, and replace "with the new name you selected ".

The change of database name is relatively simple in database knowledge. It can be considered as an entry-level knowledge and is suitable for beginners to learn. It is hoped that the modification of the database name introduced in this article will be helpful for beginners.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.