FIX: Can’t create a database with a used database name by using the Create or CreateOrReplace command in SQL Server 2016

Symptoms
Assume that you create a tabular database by using the Create or the CreateOrReplace Tabular Model Scripting Language (TMSL) command in Microsoft SQL Server 2016, and the database name is DB1. Then, you rename the database to DB2. After that, you create another database with the name DB1 by using the same Create or CreateOrReplace TMSL command. In this situation, you receive an error message that resembles the following:
The JSON DDL request failed with the following error: Another 'Database' object has the <id> ID..
Note This issue doesn't occur if you have defined the database id.
Resolution
The issue was first fixed in the following cumulative update of SQL Server: Recommendation: Install the latest cumulative update for SQL Server
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology that Microsoft uses to describe software updates.
Properties

Article ID: 3173779 - Last Review: 07/25/2016 23:00:00 - Revision: 1.0

Microsoft SQL Server 2016 Developer, Microsoft SQL Server 2016 Enterprise, Microsoft SQL Server 2016 Enterprise Core, Microsoft SQL Server 2016 Standard

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB3173779
Feedback