Work with Data Stores from the Command Line
Using the Command Line to Work with Data Stores
About this task
Procedure
Creating a Data Store
Procedure
ihConfigManager_x64.exe CreateDataStore DataStoreName [StoreType: Historical = 0, Scada = 1]
[DefaultStore: NotADefault=0, Default = 1] ["OptionalDataStoreDescription"]
DataStoreName
is the name of the data store you want to create.Deleting a Data Store
Procedure
ihConfigManager_x64.exe DeleteDataStore MyStore [NoConfirm]
- MyStore is the name of the data store you want to delete, and
- NoConfirm allows you delete a data store without a validation message appearing.CAUTION: Exercise extreme care in using the NoConfirm option, as it will delete an entire data store without a prompt. This is sometimes helpful in scripting, but it is a dangerous option otherwise.
Examples
- Example 1: Create a new historical data store, but do not change my default data store
-
C:\Program Files\Proficy\Historian\x64\Server\ihConfigManager_x64.exe CreateDataStore MyStore 0 0
- Example 2: Create a new historical data store and make it a default data store
-
C:\Program Files\Proficy\Historian\x64\Server\ihConfigManager_x64.exe CreateDataStore MyStore 0 1 "This is my default historical store"
- Example 3: Delete a data store, and display a validation message after it is removed
-
C:\Program Files\Proficy\Historian\x64\Server\ihConfigManager_x64.exe DeleteDataStore MyStore
- Example 4: Delete a data store, but suppress any validation messages
-
C:\Program Files\Proficy\Historian\x64\Server\ihConfigManager_x64.exe DeleteDataStore MyStore NoConfirm