When you create a Tabular model for Analysis Services, the Culture and Collation properties are set automatically and cannot be changed by the SSDT user interface in Visual Studio. The biggest issue is the workspace database, because these properties cannot be modified on a deployed database, and Visual Studio creates a workspace database to enable the visual editing with data preview in Visual Studio.
In order to change the Culture and/or Collation properties of an Analysis Tabular database, you have to edit the BIM file externally and then deploy this database as a new one. If you are using Visual Studio, follow the steps corresponding to the workspace configuration you use.
Change Culture/Collation using Integrated Workspace
- Close Visual Studio.
- Open the folder containing the visual studio project and the BIM file with Windows Explorer. Let’s call it <project folder>.
- Delete the directory <project folder>\bin\Data and its content. (This is the integrated workspace database).
- Open the .BIM file of your project using Tabular Editor and change the properties following the instructions of this article.
- Save the .BIM file and close Tabular Editor.
- Open Visual Studio and open the project file. This generates a new integrated workspace database that will get the new Culture and Collation settings.
- You have to refresh the preview data in the workspace database at this point.
Change Culture/Collation using a separate Workspace server
- Identify the workspace database name in the Visual Studio project.
- Open a connection to the Workspace Server using SQL Server Management Studio (SSMS).
- Locate the Workspace database in SSMS.
- Close Visual Studio.
- Delete the Workspace database in SSMS. If it is not visible, it has been detached by Visual Studio. In that case, Attach the database and then delete it.
- Open the folder containing the visual studio project and the BIM file with Windows Explorer. Let’s call it <project folder>.
- Delete the directory <project folder>\bin\Data and its content. (This is the integrated workspace database)
- Open the .BIM file of your project using Tabular Editor and change the properties following the instructions of this article.
- Save the .BIM file and close Tabular Editor
- Open Visual Studio and open the project file. This generates a new workspace database in the workspace server. The new database will get the new Culture and Collation settings.
- If you have an error at this point, identify the detached database you have on the workspace server and remove it (see step 5 – you didn’t delete the database at that point). Then, repeat step 10 until it completes successfully.
- You have to refresh the preview data in the workspace database at this point.