0
我的目標是通過存儲過程通過從一個SQL Azure的數據庫(用戶DB)到另一個SQL Azure數據庫(數據倉庫)數據。天青數據工廠數據集從StoredProcedure的
我已經創建了兩個鏈接服務,每一個DB。我懷疑這兩個數據集。
在考慮中的存儲過程從表中收集的數據和多個與其它表中的連接,並返回應當被存儲在一個表中的數據倉庫
的SP的結果是這樣的:
ALTER PROCEDURE [DataWarehouse].[Item_init]
AS
BEGIN
SET NOCOUNT ON
SELECT Id, a.Name, Code, f.Name, s.Name, g.Name
FROM Item.Item a
join Item.Groupg on g.idGroup= a.idGroup
join Item.Subfam s on s.idSubfam = g.idSubfam
join Item.Fam f on f.idFam= s.idFam
END
從userDB的(我認爲這是不正確的)收集數據,該數據集是這樣的:
{
"name": "ds_SProcItem_init",
"properties": {
"published": false,
"type": "AzureSqlTable",
"linkedServiceName": "UserTable",
"typeProperties": {
"tableName": "Item.Item"
},
"availability": {
"frequency": "Hour",
"interval": 1
}
}
}
其他數據集:
{
"name": "ds_DWItemOutput",
"properties": {
"published": false,
"type": "AzureSqlTable",
"linkedServiceName": "DataWareHouse",
"typeProperties": {
"tableName": "Item"
},
"availability": {
"frequency": "Hour",
"interval": 1
}
}
}
傳達的數據集上的管道如下:
{
"name": "SprocItem_InitPipeline",
"properties": {
"activities": [
{
"type": "SqlServerStoredProcedure",
"typeProperties": {
"storedProcedureName": "DataWarehouse.Item_init"
},
"inputs": [
{
"name": "ds_SProcItem_init"
}
],
"outputs": [
{
"name": "ds_DWItemOutput"
}
],
"scheduler": {
"frequency": "Hour",
"interval": 1
},
"name": "SprocItem_Init"
}
],
"start": "2016-08-02T00:00:00Z",
"end": "2016-08-02T05:00:00Z",
"isPaused": false,
"hubName": "pruebasaas_hub",
"pipelineMode": "Scheduled"
}
}
請,有人誰知道的問題,你能幫幫我嗎? 謝謝!
謝謝!我遵循你的建議,並得到它的工作 – Jsanchez
偉大,高興地幫助 –
存儲過程的任何例子或鏈接? – Arron