首先,确认第二个管道是否已在相同的订阅中创建,确保其与目标SQL使用的专用终端在同一区域中。其次,确保您已为第二个管道指定正确的SQL连接字符串和凭据。最后,确保为第二个管道进行的任何其他配置都是正确的。以下是示例代码,用于确保第二个管道可成功连接SQL:
{
"name": "[concat('CopyFromSQLToBlob', uniqueString(resourceGroup().id))]",
"properties": {
"activities": [
{
"type": "Copy",
"inputs": [
{
"referenceName": "MyLinkedServiceBlobStorage",
"type": "DatasetReference"
}
],
"outputs": [
{
"referenceName": "MyLinkedServiceSQLDB",
"type": "DatasetReference"
}
],
"typeProperties": {
"source": {
"type": "SqlServerQuery",
"query": "SELECT * FROM myTable"
},
"sink": {
"type": "BlobSink",
"writeBatchSize": 0,
"writeBatchTimeout": "00:00:00"
}
},
"policy": {
"timeout": "1.00:00:00",
"concurrency": 1,
"executionPriorityOrder": "NewestFirst",
"style": "StartOfInterval",
"retry": 0,
"longRetry": 0,
"longRetryInterval": "00:02:00",
"secureOutput": false,
"secureInput": false
},
"scheduler": {
"frequency": "Day",
"interval": 1
},
"name": "MyCopyActivity"
}
]
},
"type": "Microsoft.DataFactory/factories/pipelines"
}