Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,742 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi how can we use Same data sets and three tables like table1, table2, table3 in adf I tried can I define table name in parameter section... Will it overwrite 2nd time
You can manage datasets and tables dynamically using parameters. This allows you to reuse the same dataset with different tables without having to create multiple datasets for each table. Here’s how you can achieve this:
{
"name": "AzureSqlDataset",
"properties": {
"type": "AzureSqlTable",
"typeProperties": {
"tableName": "@{dataset().TableName}"
},
"parameters": {
"TableName": {
"type": "String"
}
}
}
}
{
"name": "CopyActivity",
"type": "Copy",
"inputs": [
{
"referenceName": "AzureSqlDataset",
"type": "DatasetReference",
"parameters": {
"TableName": "Table1"
}
}
],
"outputs": [
{
"referenceName": "AzureSqlDataset",
"type": "DatasetReference",
"parameters": {
"TableName": "Table2"
}
}
]
}
Table1
, Table2
, and Table3
.
{
"activities": [
{
"name": "CopyFromTable1",
"type": "Copy",
"inputs": [
{
"referenceName": "AzureSqlDataset",
"type": "DatasetReference",
"parameters": {
"TableName": "Table1"
}
}
]
},
{
"name": "CopyFromTable2",
"type": "Copy",
"inputs": [
{
"referenceName": "AzureSqlDataset",
"type": "DatasetReference",
"parameters": {
"TableName": "Table2"
}
}
]
},
{
"name": "CopyFromTable3",
"type": "Copy",
"inputs": [
{
"referenceName": "AzureSqlDataset",
"type": "DatasetReference",
"parameters": {
"TableName": "Table3"
}
}
]
}
]
}