An error occurred while creating the database (Microsoft. SqlServer. Smo ).

Source: Internet
Author: User
The Charging System of the IDC is complete, but I knocked it on my laptop and didn't implement remote release. The result was only a PASS ~ Come back and re-export your database to the desktop. Because the SQL installed in my notebook is different from the desktop version, I have encountered some problems. For specific solutions, refer to blog. csdn. netmascfarticl.

The Charging System of the IDC is complete, but I knocked it on my laptop and didn't implement remote release. The result was only a PASS ~ Back to re export your database to the desktop, because my laptop installed SQL and desktop version is not the same, so encountered some problems, specific solution please refer to blog: http://blog.csdn.net/mascf/articl

The Charging System of the IDC is complete, but I knocked it on my laptop and didn't implement remote release. The result was only a PASS ~ Back to export your ownDatabaseTo the desktop, because my laptop installed SQL and desktop version is not the same, so encountered some problems, the specific solution please refer to blog: http://blog.csdn.net/mascf/article/details/38644759

The script has been exported but is created.DatabaseThe following problems occur during the creation process:

(But I forget the keyword is as follows)

CreateDatabaseFailed(Microsoft. SqlServer. Smo ))

RunAn exception occurred during the Transact-SQL statement or batch processing. (Microsoft. SqlServer. ConnectionInfo)

Unable to obtainDatabaseExclusive lock on 'model'

This phenomenon is caused by deadlocks.

Solution: Find out the model usedDatabaseAnd then use the kill command to kill the process to get the resource.

The procedure is as follows:

Run the following code in the query Analyzer:


ThenCreateNewDatabaseOK.DatabaseThere is no content, we need to add an administrator information to create a query:


Now, let's test it on the desktop!

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.