1
我目前正在設置SQL複製以將我們的Raven DB文檔複製到SQL中用於報告目的。到目前爲止,一切工作都很好。但是,我現在正在嘗試保存一個包含數組的文件,以保存一週中的幾天。Raven DB SQL Replication如何處理將數組保存到SQL?
這是文檔的外觀在烏鴉:
{
"ClientId": "clients/385",
"Description": "Test",
"IsOneOff": false,
"RecursEveryWeeks": 1,
"StartDate": "2013-03-19T00:00:00.0000000",
"TaskStartTime": "12:00:00",
"TaskDuration": 120,
"TaskEndTime": "14:00:00",
"AdditionalResources": false,
"AdditionalVisitType": "TestType",
"BillableTo": "Private",
"RecurrenceEndDate": "2013-04-30T00:00:00.0000000",
"DaysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Friday",
"Saturday"
]
}
在SQL複製我也做了以下內容:
sqlReplicate("AdditionalVisit", "AdditionalVisitId", {
ClientId: this.ClientId,
Description: this.Description,
IsOneOff: this.IsOneOff,
RecursEveryWeeks: this.RecursEveryWeeks,
StartDate: this.StartDate,
TaskStartTime: this.TaskStartTime,
TaskDuration: this.TaskDuration,
TaskEndTime: this.TaskEndTime,
AdditionalResources: this.AdditionalResources,
AdditionalVisitType: this.AdditionalVisitType,
BillableTo: this.BillableTo,
RecurrenceEndDate: this.RecurrenceEndDate,
DaysOfWeek: this.DaysOfWeek
});
當我離開DaysOfWeek出的SQL複製所有這一切工作正常但當我離開時導致服務器崩潰。
這應如何在SQL複製中完成,以便將數組中的所有內容都保存到SQL中的DaysOfWeek列?
非常感謝保羅,得到它使用這個工作。乾杯,克里斯 – Chris 2013-03-19 16:43:29