SuperMap iDesktopX supports managing datasources, including the following:
5. Reopen Datasource as Read-Only/Exclusive
Copy Datasource
Copying a datasource means copying all datasets in the source datasource to the target datasource. Select the datasource to be copied in the workspace manager, select Copy Datasource in the right-click menu, and set the source datasource, target datasource, and the following settings in the pop-up dialog box:
- Keep Projection: Checked by default, that is, the projection of the target datasource remains unchanged when copying the datasource. Uncheck the projection of the target datasource to become the projection of the source datasource.
- Copy Structure Only: Unchecked by default, that is, when copying the datasource, all data of the source dataset, including the graphics and attribute data of the geometric objects, can be copied to the corresponding dataset of the target datasource. Check to copy only the datasource library structure.
- Advanced: You can select the source dataset to be copied by checking the source dataset, or rename the target dataset.
Reassign Datasource
Datasources and workspaces are generally stored in the same directory folder, and data operations in the workspace rely on the data within the datasource. Therefore, when copying a workspace, the datasource is typically copied as well. However, if the datasource storage location changes or the workspace cannot automatically associate with the datasource, select the datasource that needs to be reconnected in the workspace manager, and choose Reassign... from the context menu.

- Reassign Datasource is available only if the datasource storage location has changed relative to workspace.
- When you use Reassign Datasource, other datasource connections are automatically checked. If they are all disconnected and the datasources are all stored in the same folder, the system will automatically associate other disconnected datasources and complete the re-assignment of datasources in batches.
- After datasource reassigning , if there are saved maps, scenes, etc. In workspace, you need to change dataset to restore the operation before the datasource location changes. Refer to Change Dataset.
Close Datasource
Closing datasources in the workspace that are temporarily not needed can help quickly locate the required datasource for operations. In the workspace manager, select the datasource to be closed and choose Close from the context menu.

When closing a datasource, the datasets within it will also be closed. Before closing the datasource, ensure that its datasets are no longer in use within the workspace.
Compress Datasource
For UDB/UDBX file datasources, single or multiple datasources can be compressed in batch to reduce the amount of data and occupy less disk space. In Workspace Manager, select the datasource to be compressed, and select Compress Datasource in the context menu. Alternatively, use the Toolbox panel-> Data Management-> Data Maintenance-> Compress Datasource.

During the process of compacting the data source, the Compact Datasource dialog box will pop up to prompt the compaction progress. After the operation is completed, the operation result (success or failure) will be prompted in the output window.
Reopen Datasource as Read-Only/Exclusive
When using certain features, such as multi-process map tiling, each process accesses all datasources of the map layers simultaneously, potentially causing datasource conflicts. To avoid this, set the datasource to read-only before executing such tasks. Additionally, for editing multiple datasets across multiple datasources, setting some datasources to read-only can prevent accidental modifications.
To reopen a datasource as read-only, select the datasource in the workspace manager, right-click, and choose Reopen as Read-Only from the context menu.
If you want to cancel the read-only mode and edit the datasets within a datasource, select the datasource in the workspace manager, right-click, and choose Reopen Exclusively from the context menu.
Sort Datasources
Sorting multiple datasources in a workspace can improve management and operational efficiency. To sort datasources, select the datasource node in the workspace manager, right-click, and choose Sort Datasources. Then, select the sorting criteria: by name, type, or opening order.
Refresh Datasource
If added or removed datasets are not correctly displayed under a datasource node, select the datasource in the workspace manager, right-click, and choose Refresh. The refreshed datasource will appear at the bottom of the datasource list.
Related Topics
View the Datasource properties