三、環境架設與資料表設定
環境
.NET Framework Version:4.7.2
SQL Server Version:Microsoft SQL Server 2019 Developer Edition (x64) & Integration Service
開發工具:Visual Studio 2019 - SSIS 套件
特別注意:SQL Express 版本未含 Integration Service & SQL Server Agent,需下載 Developer Edition 免費版。之前在開發時沒有特別注意版本,所以測試使用 Command Line 執行封裝時會出現錯誤。
Table Schema
Table Name:Stock_Chart & Stock_Chart_History
Column Name
Is Nillable
Data Type
ApiDatetime
False
datetime
StockNo
False
varchar
MinAvgOpenPrice
False
decimal
MinAvgHighPrice
False
decimal
MinAvgLowPrice
False
decimal
MinAvgClosePrice
False
decimal
MinAvgVolume
False
int
TransDatetime
False
datetime
Table Name:Stock_Quote & Stock_Quote_History
Column Name
Is Nillable
Data Type
ApiDatetime
False
datetime
StockNo
False
varchar
DayHighPrice
False
decimal
DayHighTime
False
datetime
DayLowPrice
False
decimal
DayLowTime
False
datetime
TransDatetime
False
datetime
Table Name:ErrorLog
Column Name
Is Nillable
Data Type
TaskName
False
varchar
ErrorCode
False
varchar
ErrorMsg
False
varchar
Datetime
False
datetime
Last updated