CREATE DATABASE failed

Source: Internet
Author: User

Because of the environment, modify the location of the data files and log files of the default database for SQL Server 2012. As follows:

Create database, encounter error.

Error message:

A file activation error occurred. The physical file name ' E:testaaa.mdf ' may be incorrect. Diagnose and correct additional errors, and retry the operation.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, error:5105)

Observe the error message and report that my file is named ' E:testaaa.mdf '. It is clear that there is a backward slash missing here.

Manually add a backward slash, no results.

Use the button on the edge of the text box to select the root directory, OK. Still no fruit.

Check the KB, no fruit.

Workaround

====================

A folder is created under the root directory, and the default location is changed to a folder in the root directory, OK.

Comments

====================

It's annoying to let people choose the root directory and not to use it.

Resources

=======================

You could receive error messages when you use the CREATE DATABASE statement to create a SQL Server DATABASE

Http://support.microsoft.com/kb/836873/en-us

CREATE DATABASE failed

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.