Issue
A SQL script is needed to delete "ALL" historical data from the ION_Data database faster.
Product Line
Power Monitoring Expert 7.x
Power Monitoring Expert 8.x
Power Monitoring Expert 9.x
Power Monitoring Expert 2020
Environment
SQL Server Management Studio
Cause
The "Truncate" query is a faster way to remove all data from specific tables that holds historical data. Truncate is faster and uses fewer system resources than a regular trim job.
Note: Truncate removes "ALL" entries from a table once it is executed.
Resolution
*Warning: Irreparable database damage can occur. Databases should be backed up prior to performing this procedure.*
*Warning: This procedure is recommended to be deployed by users familiar with Databases.*
The following are the scripts to remove "ALL" entries from DataLog2, EventLog2, and WaveformLog2 respectively.
1-
USE ION_Data
TRUNCATE TABLE DataLog2
2-
USE ION_Data
TRUNCATE TABLE EventLog2
3-
USE ION_Data
TRUNCATE TABLE WaveformLog2
A SQL script is needed to delete "ALL" historical data from the ION_Data database faster.
Product Line
Power Monitoring Expert 7.x
Power Monitoring Expert 8.x
Power Monitoring Expert 9.x
Power Monitoring Expert 2020
Environment
SQL Server Management Studio
Cause
The "Truncate" query is a faster way to remove all data from specific tables that holds historical data. Truncate is faster and uses fewer system resources than a regular trim job.
Note: Truncate removes "ALL" entries from a table once it is executed.
Resolution
*Warning: Irreparable database damage can occur. Databases should be backed up prior to performing this procedure.*
*Warning: This procedure is recommended to be deployed by users familiar with Databases.*
The following are the scripts to remove "ALL" entries from DataLog2, EventLog2, and WaveformLog2 respectively.
1-
USE ION_Data
TRUNCATE TABLE DataLog2
2-
USE ION_Data
TRUNCATE TABLE EventLog2
3-
USE ION_Data
TRUNCATE TABLE WaveformLog2
Đã phát hành cho: Schneider Electric Việt Nam


Bạn cần trợ giúp?
Công cụ chọn sản phẩm
Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.
Nhận báo giá
Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.
Nơi mua hàng?
Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.
Trung tâm Hỗ trợ
Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.